fix directors + unnamed parameters
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6491 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
3204181b17
commit
66402343a5
1 changed files with 5 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ char cvsroot_directors_cxx[] = "$Header";
|
|||
|
||||
String *Swig_csuperclass_call(String* base, String* method, ParmList* l) {
|
||||
String *call = NewString("");
|
||||
int arg_idx = 0;
|
||||
Parm *p;
|
||||
if (base) {
|
||||
Printf(call, "%s::", base);
|
||||
|
|
@ -32,6 +33,10 @@ String *Swig_csuperclass_call(String* base, String* method, ParmList* l) {
|
|||
Printf(call, "%s(", method);
|
||||
for (p=l; p; p = nextSibling(p)) {
|
||||
String *pname = Getattr(p, "name");
|
||||
if (!pname && Cmp(Getattr(p,"type"), "void")) {
|
||||
pname = NewString("");
|
||||
Printf(pname, "arg%d", arg_idx++);
|
||||
}
|
||||
if (p != l) Printf(call, ", ");
|
||||
Printv(call, pname, NIL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue