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
This commit is contained in:
@@ -54,7 +54,10 @@
|
|||||||
|
|
||||||
// This one will turn off the generation of the thread wrapper code
|
// This one will turn off the generation of the thread wrapper code
|
||||||
%define %threadWrapperOff
|
%define %threadWrapperOff
|
||||||
%exception
|
%exception {
|
||||||
|
$action
|
||||||
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
|
}
|
||||||
%enddef
|
%enddef
|
||||||
|
|
||||||
// Turn it on by default
|
// Turn it on by default
|
||||||
@@ -74,7 +77,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// 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.
|
// C++ function. This is like using threadWrapperOff for just this function.
|
||||||
%define KeepGIL(name)
|
%define KeepGIL(name)
|
||||||
%exception name {
|
%exception name {
|
||||||
$action
|
$action
|
||||||
|
Reference in New Issue
Block a user