Fix python -builtin -O and overloaded functions
More specifically fixes compile errors using -builtin -fastunpack -modernargs.
Recent regression (416277b). Closes #436.
This commit is contained in:
parent
b1f2d0749e
commit
180e21269d
1 changed files with 1 additions and 1 deletions
|
|
@ -2714,7 +2714,7 @@ public:
|
|||
Printv(f->locals, " char * kwnames[] = ", kwargs, ";\n", NIL);
|
||||
}
|
||||
|
||||
if (builtin && in_class && tuple_arguments == 0) {
|
||||
if (builtin && !funpack && in_class && tuple_arguments == 0) {
|
||||
Printf(parse_args, " if (args && PyTuple_Check(args) && PyTuple_GET_SIZE(args) > 0) SWIG_exception_fail(SWIG_TypeError, \"%s takes no arguments\");\n", iname);
|
||||
} else if (use_parse || allow_kwargs || !modernargs) {
|
||||
Printf(parse_args, ":%s\"", iname);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue