Modify following features to work as flags, so that they can be truely set and unset:
exceptionclass git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7571 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
963da5f126
commit
4e3bc83ad5
2 changed files with 3 additions and 3 deletions
|
|
@ -467,8 +467,8 @@ class Allocate : public Dispatcher {
|
|||
}
|
||||
Node *c = Swig_symbol_clookup(t,0);
|
||||
if (c) {
|
||||
if (!Getattr(c,"feature:exceptionclass")) {
|
||||
Setattr(c,"feature:exceptionclass","1");
|
||||
if (!GetFlag(c,"feature:exceptionclass")) {
|
||||
SetFlag(c,"feature:exceptionclass");
|
||||
}
|
||||
}
|
||||
p = nextSibling(p);
|
||||
|
|
|
|||
|
|
@ -1954,7 +1954,7 @@ public:
|
|||
have_constructor = 0;
|
||||
have_repr = 0;
|
||||
|
||||
if (checkAttribute(n,"feature:exceptionclass","1")) {
|
||||
if (GetFlag(n,"feature:exceptionclass")) {
|
||||
classic = 1;
|
||||
modern = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue