diff Include/pyerrors.h @ 24423:3db261a93a5b legacy-trunk

New functions for extension writers on Windows: PyErr_SetExcFromWindowsErr(), PyErr_SetExcFromWindowsErrWithFilename(). Similar to PyErr_SetFromWindowsErrWithFilename() and PyErr_SetFromWindowsErr(), but they allow to specify the exception type to raise. Available on Windows. See SF patch #576458.
author Thomas Heller <theller@ctypes.org>
date Mon, 29 Jul 2002 14:27:41 +0000
parents 3f242cdd0904
children c1eb668525e1
line wrap: on
line diff
--- a/Include/pyerrors.h	Mon Jul 29 14:05:24 2002 +0000
+++ b/Include/pyerrors.h	Mon Jul 29 14:27:41 2002 +0000
@@ -83,6 +83,9 @@
 #ifdef MS_WINDOWS
 extern DL_IMPORT(PyObject *) PyErr_SetFromWindowsErrWithFilename(int, const char *);
 extern DL_IMPORT(PyObject *) PyErr_SetFromWindowsErr(int);
+extern DL_IMPORT(PyObject *) PyErr_SetExcFromWindowsErrWithFilename(
+	PyObject *,int, const char *);
+extern DL_IMPORT(PyObject *) PyErr_SetExcFromWindowsErr(PyObject *, int);
 #endif
 
 /* Export the old function so that the existing API remains available: */