From: Robin Dunn Date: Fri, 25 Aug 2006 03:21:18 +0000 (+0000) Subject: Still check for a Python error in %threadWrapperOff X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7499bd8874d3ae373167324b531457517e98749a Still check for a Python error in %threadWrapperOff git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/_defs.i b/wxPython/src/_defs.i index c417cc6e9f..0315e31fd8 100644 --- a/wxPython/src/_defs.i +++ b/wxPython/src/_defs.i @@ -54,7 +54,10 @@ // This one will turn off the generation of the thread wrapper code %define %threadWrapperOff -%exception +%exception { + $action + if (PyErr_Occurred()) SWIG_fail; +} %enddef // Turn it on by default @@ -74,7 +77,7 @@ // This macro can be used to disable the releasing of the GIL when calling the -// C++ function. +// C++ function. This is like using threadWrapperOff for just this function. %define KeepGIL(name) %exception name { $action