[pywin32-checkins] pywin32/com/win32com/src PyIUnknown.cpp,1.9,1.10
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@us...> - 2004-03-30 04:49:51
|
Update of /cvsroot/pywin32/pywin32/com/win32com/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4282/com/win32com/src Modified Files: PyIUnknown.cpp Log Message: Formalize some simple C++ exception handling for the exceptions. Index: PyIUnknown.cpp =================================================================== RCS file: /cvsroot/pywin32/pywin32/com/win32com/src/PyIUnknown.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** PyIUnknown.cpp 2 Nov 2003 09:50:42 -0000 1.9 --- PyIUnknown.cpp 30 Mar 2004 04:38:17 -0000 1.10 *************** *** 134,138 **** // itself ignoring a reference count. PyThreadState *_save; ! __try { _save = PyEval_SaveThread(); --- 134,138 ---- // itself ignoring a reference count. PyThreadState *_save; ! PYWINTYPES_TRY { _save = PyEval_SaveThread(); *************** *** 145,153 **** ob->m_obj = NULL; } ! #if defined(__MINGW32__) || defined(MAINWIN) ! catch(...) ! #else ! __except( EXCEPTION_EXECUTE_HANDLER ) ! #endif { PyEval_RestoreThread(_save); --- 145,149 ---- ob->m_obj = NULL; } ! PYWINTYPES_EXCEPT { PyEval_RestoreThread(_save); |