X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/09c4bfc330047c420e86159ee84fc5aa3ab2b166..777dffec694eae7231e4133e5dc6bbca78045f29:/wxPython/src/_defs.i?ds=sidebyside 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