Update of /cvsroot/pywin32/pywin32/win32/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4282/win32/src
Modified Files:
PyWinTypes.h
Log Message:
Formalize some simple C++ exception handling for the exceptions.
Index: PyWinTypes.h
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/src/PyWinTypes.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** PyWinTypes.h 12 Mar 2004 09:20:38 -0000 1.20
--- PyWinTypes.h 30 Mar 2004 04:38:17 -0000 1.21
***************
*** 566,569 ****
--- 566,585 ----
#endif // PYWIN_USE_GILSTATE
+ // A helper for simple exception handling.
+ // try/__try
+ #ifdef MAINWIN
+ #define PYWINTYPES_TRY try
+ #else
+ #define PYWINTYPES_TRY __try
+ #endif /* MAINWIN */
+
+ // catch/__except
+ #if defined(__MINGW32__) || defined(MAINWIN)
+ #define PYWINTYPES_EXCEPT catch(...)
+ #else
+ #define PYWINTYPES_EXCEPT __except( EXCEPTION_EXECUTE_HANDLER )
+ #endif
+ // End of exception helper macros.
+
#endif // __PYWINTYPES_H__
|