From e07fb96db5ce0a4f0a173f85fba9378a7a166006 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 4 Feb 2004 23:36:07 +0000 Subject: [PATCH] Added bool typemap so Py_True and Py_False are returned instead of integers. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/my_typemaps.i | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wxPython/src/my_typemaps.i b/wxPython/src/my_typemaps.i index 52a9103c30..cb5ae174e5 100644 --- a/wxPython/src/my_typemaps.i +++ b/wxPython/src/my_typemaps.i @@ -241,6 +241,10 @@ } +//--------------------------------------------------------------------------- + +%typemap(out) bool "$result = $1 ? Py_True : Py_False; Py_INCREF($result);" + //--------------------------------------------------------------------------- // Typemaps to convert return values that are base class pointers -- 2.45.2