add %exceptionclass and %noexceptionclass directives and manage the feature:exceptionclass in a consistent way
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7548 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a99f08ac90
commit
78735a4ec8
4 changed files with 28 additions and 14 deletions
|
|
@ -467,7 +467,9 @@ class Allocate : public Dispatcher {
|
|||
}
|
||||
Node *c = Swig_symbol_clookup(t,0);
|
||||
if (c) {
|
||||
Setattr(c,"feature:exceptionclass","1");
|
||||
if (!Getattr(c,"feature:exceptionclass")) {
|
||||
Setattr(c,"feature:exceptionclass","1");
|
||||
}
|
||||
}
|
||||
p = nextSibling(p);
|
||||
Delete(t);
|
||||
|
|
|
|||
|
|
@ -1954,7 +1954,7 @@ public:
|
|||
have_constructor = 0;
|
||||
have_repr = 0;
|
||||
|
||||
if (Getattr(n,"feature:exceptionclass")) {
|
||||
if (checkAttribute(n,"feature:exceptionclass","1")) {
|
||||
classic = 1;
|
||||
modern = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue