Fixed bug in default argument handling.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@802 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
172e9d33b8
commit
74f12225d3
1 changed files with 1 additions and 1 deletions
|
|
@ -406,7 +406,7 @@ PYTHON::create_function(char *name, char *iname, SwigType *d, ParmList *l) {
|
||||||
|
|
||||||
if ((tm = Swig_typemap_lookup((char*)"in",pt,pn,source,target,f))) {
|
if ((tm = Swig_typemap_lookup((char*)"in",pt,pn,source,target,f))) {
|
||||||
Putc('O',parse_args);
|
Putc('O',parse_args);
|
||||||
Wrapper_add_localv(f, source, "PyObject *",source,0);
|
Wrapper_add_localv(f, source, "PyObject *",source, " = 0", 0);
|
||||||
Printf(arglist,"&%s",source);
|
Printf(arglist,"&%s",source);
|
||||||
if (i >= (pcount-numopt))
|
if (i >= (pcount-numopt))
|
||||||
Printv(get_pointers, tab4, "if (", source, ")\n", 0);
|
Printv(get_pointers, tab4, "if (", source, ")\n", 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue