overloaded constructor patch.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4605 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7777e17599
commit
f915b0af06
1 changed files with 5 additions and 2 deletions
|
|
@ -633,8 +633,11 @@ Swig_ConstructorToFunction(Node *n, String *classname,
|
|||
if (flags & CWRAP_EXTEND) {
|
||||
String *code = Getattr(n,"code");
|
||||
if (code) {
|
||||
String *wrap;
|
||||
String *s = NewStringf("%s(%s)", mangled, ParmList_str(parms));
|
||||
String *wrap, *s;
|
||||
if (Getattr(n,"sym:overloaded") && code) {
|
||||
Append(mangled,Getattr(n,"sym:overname"));
|
||||
}
|
||||
s = NewStringf("%s(%s)", mangled, ParmList_str(parms));
|
||||
wrap = SwigType_str(type,s);
|
||||
Delete(s);
|
||||
Printv(wrap,code,"\n",NIL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue