use hidden attr instead of self, is more general
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8606 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a4b8f2cb27
commit
c98cffe7a6
1 changed files with 4 additions and 3 deletions
|
|
@ -1629,7 +1629,7 @@ public:
|
|||
if (Len(pn)) {
|
||||
String *tmp = 0;
|
||||
String *name = pn;
|
||||
if (!Getattr(p,"self")) {
|
||||
if (!Getattr(p,"hidden")) {
|
||||
name = tmp = Swig_name_make(p,0,pn,0, 0);
|
||||
}
|
||||
Printf(kwargs,"(char *) \"%s\",", name);
|
||||
|
|
@ -1661,7 +1661,7 @@ public:
|
|||
|
||||
if (Getattr(p,"tmap:in:implicitconv")) {
|
||||
const char *convflag = "0";
|
||||
if (!Getattr(p,"self")) {
|
||||
if (!Getattr(p,"hidden")) {
|
||||
SwigType *ptype = Getattr(p,"type");
|
||||
convflag = get_implicitconv_flag(classLookup(ptype));
|
||||
}
|
||||
|
|
@ -1766,7 +1766,7 @@ public:
|
|||
if (!Getattr(p,"tmap:in:parse") && (tm = Getattr(p,"tmap:freearg"))) {
|
||||
if (Getattr(p,"tmap:freearg:implicitconv")) {
|
||||
const char *convflag = "0";
|
||||
if (!Getattr(p,"self")) {
|
||||
if (!Getattr(p,"hidden")) {
|
||||
SwigType *ptype = Getattr(p,"type");
|
||||
convflag = get_implicitconv_flag(classLookup(ptype));
|
||||
}
|
||||
|
|
@ -2856,6 +2856,7 @@ public:
|
|||
if (parms) set_nextSibling(self, parms);
|
||||
Setattr(n, "parms", self);
|
||||
Setattr(n, "wrap:self", "1");
|
||||
Setattr(n, "hidden", "1");
|
||||
Delete(self);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue