fix for language that don't support directors

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6480 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-10-22 08:10:37 +00:00
commit 452b7bedc5

View file

@ -2588,7 +2588,8 @@ String * Language::getClassType() const {
int Language::abstractClassTest(Node *n) {
List *abstract = Getattr(n,"abstract");
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
that the director is really not abstract.