]> git.saurik.com Git - wxWidgets.git/commitdiff
Added a typecheck typmap for wxString
authorRobin Dunn <robin@alldunn.com>
Tue, 3 Feb 2004 03:58:36 +0000 (03:58 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 3 Feb 2004 03:58:36 +0000 (03:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/my_typemaps.i

index ff4994d928db116b1b0a3a1b6d2643ecf7226ade..52a9103c3088f06c1aa0272a37234c87b74c1ff7 100644 (file)
     $1 = *sptr;
     delete sptr;
 }
-    
+
+%typemap(typecheck, precedence=SWIG_TYPECHECK_POINTER) wxString& {
+    $1 = PyString_Check($input) || PyUnicode_Check($input);
+}
+
    
 
 //---------------------------------------------------------------------------