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:
parent
1ca5dca583
commit
98fb466409
1 changed files with 5 additions and 6 deletions
|
|
@ -1282,9 +1282,8 @@ SwigType *SwigType_alttype(SwigType *t, int local_tmap) {
|
||||||
} else {
|
} else {
|
||||||
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 {
|
||||||
|
|
@ -1311,9 +1310,9 @@ SwigType *SwigType_alttype(SwigType *t, int local_tmap) {
|
||||||
if (SwigType_type(td) == T_USER) {
|
if (SwigType_type(td) == T_USER) {
|
||||||
if ((n = Swig_symbol_clookup(td,0))) {
|
if ((n = Swig_symbol_clookup(td,0))) {
|
||||||
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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue