git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6831 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
76b4f394af
commit
d88eed76e6
3 changed files with 56 additions and 43 deletions
|
|
@ -1106,14 +1106,7 @@ Language::staticmemberfunctionHandler(Node *n) {
|
|||
|
||||
if (!defaultargs && code) {
|
||||
/* Hmmm. An added static member. We have to create a little wrapper for this */
|
||||
String *body;
|
||||
String *parmstring = CPlusPlus ? ParmList_str_defaultargs(parms) : ParmList_str(parms);
|
||||
String *tmp = NewStringf("%s(%s)", cname, parmstring);
|
||||
body = SwigType_str(type,tmp);
|
||||
Printv(body,code,"\n",NIL);
|
||||
Setattr(n,"wrap:code",body);
|
||||
Delete(tmp);
|
||||
Delete(body);
|
||||
Swig_add_extension_code(n, cname, parms, type, code, CPlusPlus);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue