Added new attribute to class nodes
"classtypeobj" This is the raw, SWIG type-system representation of the class type. This should be used in all typemap lookups and operations involving the class name. Note: There is inconsistent use of the "classtype" attribute across language modules-- especially in code related to directors. To avoid breaking the universe, I have decided to store the correct type encoding as "classtypeobj" instead of replacing "classtype". As modules are checked they can elect to use "classtype" or "classtypeobj" as appropriate. Note: William, you should use "classtypeobj" to fix the typemap problem (probably). git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5457 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
10b8703527
commit
65734165ca
1 changed files with 1 additions and 1 deletions
|
|
@ -1637,7 +1637,7 @@ int Language::classDeclaration(Node *n) {
|
||||||
ClassType = NewStringf("%s %s", kind, classname);
|
ClassType = NewStringf("%s %s", kind, classname);
|
||||||
}
|
}
|
||||||
Setattr(n,"classtype", SwigType_namestr(ClassType));
|
Setattr(n,"classtype", SwigType_namestr(ClassType));
|
||||||
|
Setattr(n,"classtypeobj", Copy(ClassType));
|
||||||
InClass = 1;
|
InClass = 1;
|
||||||
CurrentClass = n;
|
CurrentClass = n;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue