fix unapplied 'novaluewrapper' feature and add directive forms
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8652 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ba3a92deca
commit
9d88b67802
2 changed files with 7 additions and 1 deletions
|
|
@ -152,6 +152,12 @@
|
|||
#define %nonaturalvar %feature("naturalvar","0")
|
||||
#define %clearnaturalvar %feature("naturalvar","")
|
||||
|
||||
/* valuewrapper directives */
|
||||
#define %valuewrapper %feature("valuewrapper",)
|
||||
#define %clearvaluewrapper %feature("valuewrapper","")
|
||||
#define %novaluewrapper %feature("novaluewrapper")
|
||||
#define %clearnovaluewrapper %feature("novaluewrapper","")
|
||||
|
||||
/* Contract support - Experimental and undocumented */
|
||||
#define %contract %feature("contract")
|
||||
|
||||
|
|
|
|||
|
|
@ -1272,7 +1272,7 @@ SwigType *SwigType_alttype(SwigType *t, int local_tmap) {
|
|||
}
|
||||
} else {
|
||||
if (SwigType_issimple(td) && SwigType_istemplate(td)) {
|
||||
use_wrapper = 1;
|
||||
use_wrapper = !GetFlag(n,"feature:novaluewrapper");
|
||||
}
|
||||
}
|
||||
if (use_wrapper) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue