Fix overloading of constructors.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8814 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5864f4ffce
commit
a5c2491f6a
1 changed files with 6 additions and 1 deletions
|
|
@ -1910,6 +1910,7 @@ public:
|
|||
* ------------------------------------------------------------ */
|
||||
|
||||
virtual int constructorHandler(Node *n) {
|
||||
char *name = GetChar(n, "name");
|
||||
char *iname = GetChar(n, "sym:name");
|
||||
|
||||
if (shadow) {
|
||||
|
|
@ -1924,7 +1925,11 @@ public:
|
|||
|
||||
if(shadow) {
|
||||
String *wname = NewStringf( "_wrap_new_%s", iname );
|
||||
create_command( iname, wname );
|
||||
if(!Getattr(n,"sym:overloaded") || !Getattr(n,"sym:nextSibling")) {
|
||||
char *realname = iname ? iname : name;
|
||||
String *php_function_name = Swig_name_member(shadow_classname, realname);
|
||||
create_command(realname,Swig_name_wrapper(php_function_name));
|
||||
}
|
||||
Delete(wname);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue