Added support for null pointer constant introduced in C++0x. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11484 626c5289-ae23-0410-ae9c-e8d60b6d4f22
13 lines
337 B
Python
13 lines
337 B
Python
import cpp0x_alternate_function_syntax
|
|
|
|
a = cpp0x_alternate_function_syntax.SomeStruct()
|
|
|
|
res = a.addNormal(4,5)
|
|
if res != 9:
|
|
raise RuntimeError, ("SomeStruct::addNormal(4,5) returns ", res, " should be 9.")
|
|
|
|
|
|
res = a.addAlternate(4,5)
|
|
if res != 9:
|
|
raise RuntimeError, ("SomeStruct::addAlternate(4,5) returns ", res, " should be 9.")
|
|
|