]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/my_typemaps.i
Add a set for wxMac too
[wxWidgets.git] / wxPython / src / my_typemaps.i
index c1a37dfc22a08638210d86b4f50738fbab787b43..b130f580be3a9347faa8cb965c8d666d24142a23 100644 (file)
 
 //---------------------------------------------------------------------------
 
-%typemap(out) bool "$result = PyBool_FromLong((bool)$1);"
+%typemap(out) bool {
+    $result = $1 ? Py_True : Py_False; Py_INCREF($result);
+}
 
 
 //---------------------------------------------------------------------------