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:
William S Fulton 2005-09-30 23:21:59 +00:00
commit 4e3bc83ad5
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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;
}