fix builtin names warnings, so they ony apply to functions, as reported by James Bigler and the 'max' name issue
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8938 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0602f5c4cd
commit
dd1e7cd0b4
3 changed files with 10 additions and 1 deletions
|
|
@ -106,4 +106,6 @@
|
|||
|
||||
int foo_nu(int from = 1, int = 0) {return from; }
|
||||
|
||||
int foo_mm(int min = 1, int max = 2) {return min + max; }
|
||||
|
||||
%}
|
||||
|
|
|
|||
|
|
@ -58,3 +58,10 @@ if foo_kw(_from=2) != 4:
|
|||
|
||||
if foo_nu(_from=2, arg2=3) != 2:
|
||||
raise RuntimeError
|
||||
|
||||
if foo_mm(min=2) != 4:
|
||||
raise RuntimeError
|
||||
|
||||
if foo_mm(max=3) != 4:
|
||||
raise RuntimeError
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue