]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_defs.i
use wxGTK_CONV instead of directly using wxConvLocal (simplifies code avoiding needle...
[wxWidgets.git] / wxPython / src / _defs.i
index 9347ef9995084be62b749ab7a55f4e1a5f4dbc70..8828de982687adfbe95e4804d5d38ed2e9378294 100644 (file)
 }
 %enddef
 
-    
 
+// This macro can be used to disable the releasing of the GIL when calling the
+// C++ function.
+%define KeepGIL(name)
+%exception name {
+    $action
+    if (PyErr_Occurred()) SWIG_fail;
+}
+%enddef
+        
 //---------------------------------------------------------------------------
 // some type definitions to simplify things for SWIG