Modify following features to work as flags, so that they can be truely set and unset: novaluewrapper

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7588 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2005-10-04 20:36:09 +00:00
commit 98fb466409

View file

@ -1283,8 +1283,7 @@ SwigType *SwigType_alttype(SwigType *t, int local_tmap) {
if ((Strcmp(nodeType(n),"class") == 0) if ((Strcmp(nodeType(n),"class") == 0)
&& (!Getattr(n,"allocate:default_constructor") && (!Getattr(n,"allocate:default_constructor")
|| (Getattr(n,"allocate:noassign")))) { || (Getattr(n,"allocate:noassign")))) {
use_wrapper = !Getattr(n,"feature:novaluewrapper") use_wrapper = !GetFlag(n,"feature:novaluewrapper") || GetFlag(n,"feature:nodefault");
|| GetFlag(n,"feature:nodefault");
} }
} }
} else { } else {
@ -1313,7 +1312,7 @@ SwigType *SwigType_alttype(SwigType *t, int local_tmap) {
if (((Strcmp(nodeType(n),"class") == 0) if (((Strcmp(nodeType(n),"class") == 0)
&& !Getattr(n,"allocate:noassign") && !Getattr(n,"allocate:noassign")
&& (Getattr(n,"allocate:default_constructor"))) && (Getattr(n,"allocate:default_constructor")))
|| (Getattr(n,"feature:novaluewrapper"))) { || (GetFlag(n,"feature:novaluewrapper"))) {
use_wrapper = GetFlag(n,"feature:valuewrapper"); use_wrapper = GetFlag(n,"feature:valuewrapper");
} }
} }