fix misplaced code, reported by Olly
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9008 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e2882a13e8
commit
1097406a52
1 changed files with 1 additions and 1 deletions
|
|
@ -3617,8 +3617,8 @@ int PYTHON::classDirectorMethod(Node *n, Node *parent, String *super) {
|
||||||
Printf(w->code, "swig::PyObject_var result = PyObject_CallFunctionObjArgs(method %s, NULL);\n", arglist);
|
Printf(w->code, "swig::PyObject_var result = PyObject_CallFunctionObjArgs(method %s, NULL);\n", arglist);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Append(w->code, "swig::PyObject_var args = PyTuple_New(0);\n");
|
|
||||||
if (modernargs) {
|
if (modernargs) {
|
||||||
|
Append(w->code, "swig::PyObject_var args = PyTuple_New(0);\n");
|
||||||
Append(w->code, "swig::PyObject_var result = PyObject_Call(method, (PyObject*) args, NULL);\n");
|
Append(w->code, "swig::PyObject_var result = PyObject_Call(method, (PyObject*) args, NULL);\n");
|
||||||
} else {
|
} else {
|
||||||
Printf(w->code, "swig::PyObject_var result = PyObject_CallFunction(method, NULL, NULL);\n");
|
Printf(w->code, "swig::PyObject_var result = PyObject_CallFunction(method, NULL, NULL);\n");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue