git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40810
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// This one will turn off the generation of the thread wrapper code
%define %threadWrapperOff
// This one will turn off the generation of the thread wrapper code
%define %threadWrapperOff
+%exception {
+ $action
+ if (PyErr_Occurred()) SWIG_fail;
+}
%enddef
// Turn it on by default
%enddef
// Turn it on by default
// This macro can be used to disable the releasing of the GIL when calling the
// This macro can be used to disable the releasing of the GIL when calling the
+// C++ function. This is like using threadWrapperOff for just this function.
%define KeepGIL(name)
%exception name {
$action
%define KeepGIL(name)
%exception name {
$action