%varargs - better documentation and remove additional argument generation which didn't work properly as a sentinel

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12666 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2011-05-14 00:13:43 +00:00
commit 74aa3f218f
4 changed files with 57 additions and 16 deletions

View file

@ -27,11 +27,10 @@ if varargs.test_plenty("Hello", 1) != "Hello":
if varargs.test_plenty("Hello", 1, 2) != "Hello":
raise RuntimeError, "Failed"
if varargs.test_plenty("Hello", 1, 2, 3) != "Hello":
raise RuntimeError, "Failed"
try:
varargs.test_plenty("Hello", 1, 2, 3, 4)
varargs.test_plenty("Hello", 1, 2, 3)
raise RuntimeError
except NotImplementedError:
pass
except TypeError:
pass