]> git.saurik.com Git - wxWidgets.git/commitdiff
Added bool typemap so Py_True and Py_False are returned instead of integers.
authorRobin Dunn <robin@alldunn.com>
Wed, 4 Feb 2004 23:36:07 +0000 (23:36 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 4 Feb 2004 23:36:07 +0000 (23:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/my_typemaps.i

index 52a9103c3088f06c1aa0272a37234c87b74c1ff7..cb5ae174e5a997ee288a69ad15ea7da8fa994aac 100644 (file)
 }
 
 
+//---------------------------------------------------------------------------
+
+%typemap(out) bool "$result = $1 ? Py_True : Py_False; Py_INCREF($result);"
+
 
 //---------------------------------------------------------------------------
 // Typemaps to convert return values that are base class pointers