fix *INPUT typemaps for ptr types, now a null value is ok

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6897 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-12-19 22:36:45 +00:00
commit c57d081dfb
4 changed files with 70 additions and 5 deletions

View file

@ -0,0 +1,15 @@
from input import *
f = Foo()
if f.foo(2) != 4:
raise RuntimeError
if f.foo(None)!= None:
raise RuntimeError
if sfoo("Hello") != "Hello world":
raise RuntimeError
if sfoo(None) != None:
raise RuntimeError