fix for language that don't support directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6480 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e54d5cb523
commit
b0f3adf07f
1 changed files with 2 additions and 1 deletions
|
|
@ -2588,7 +2588,8 @@ String * Language::getClassType() const {
|
||||||
int Language::abstractClassTest(Node *n) {
|
int Language::abstractClassTest(Node *n) {
|
||||||
List *abstract = Getattr(n,"abstract");
|
List *abstract = Getattr(n,"abstract");
|
||||||
if (!abstract) return 0;
|
if (!abstract) return 0;
|
||||||
if (abstract && Cmp(Getattr(n, "feature:director"), "1")) return 1;
|
if (abstract && !directorsEnabled()) return 1;
|
||||||
|
if (Cmp(Getattr(n, "feature:director"), "1")) return 1;
|
||||||
/*
|
/*
|
||||||
since now %feature("noabstract") is working, we check
|
since now %feature("noabstract") is working, we check
|
||||||
that the director is really not abstract.
|
that the director is really not abstract.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue