From 66402343a5eedffa4a18aca6afc0a4d5bc7f733d Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sun, 24 Oct 2004 05:47:57 +0000 Subject: [PATCH] fix directors + unnamed parameters git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6491 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Modules/directors.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SWIG/Source/Modules/directors.cxx b/SWIG/Source/Modules/directors.cxx index 19384c12a..033596086 100644 --- a/SWIG/Source/Modules/directors.cxx +++ b/SWIG/Source/Modules/directors.cxx @@ -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); }