add 'self' attribute for later use
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7981 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
32cbb57ab6
commit
cbca8a3e88
2 changed files with 10 additions and 0 deletions
|
|
@ -68,6 +68,7 @@ Parm *CopyParm(Parm *p) {
|
|||
String *alttype = Getattr(p,"alttype");
|
||||
String *byname = Getattr(p, "arg:byname");
|
||||
String *compactdefargs = Getattr(p, "compactdefargs");
|
||||
String *self = Getattr(p, "self");
|
||||
|
||||
if (t) {
|
||||
SwigType *nt = Copy(t);
|
||||
|
|
@ -109,6 +110,11 @@ Parm *CopyParm(Parm *p) {
|
|||
Setattr(np, "compactdefargs", str);
|
||||
Delete(str);
|
||||
}
|
||||
if (self) {
|
||||
String *str = Copy(self);
|
||||
Setattr(np, "self", str);
|
||||
Delete(str);
|
||||
}
|
||||
|
||||
Setfile(np,Getfile(p));
|
||||
Setline(np,Getline(p));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue