Modify following features to work as flags, so that they can be truely set and unset:
new git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7564 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f6b1f29bbc
commit
75972cd1df
15 changed files with 36 additions and 36 deletions
|
|
@ -654,7 +654,7 @@ public:
|
|||
} else {
|
||||
Replaceall(tm, "$shadow", "0");
|
||||
}
|
||||
if (Getattr(n,"feature:new")) {
|
||||
if (GetFlag(n,"feature:new")) {
|
||||
Replaceall(tm,"$owner","SWIG_OWNER");
|
||||
} else {
|
||||
Replaceall(tm,"$owner","0");
|
||||
|
|
@ -673,7 +673,7 @@ public:
|
|||
|
||||
Printv(f->code,cleanup,NIL);
|
||||
|
||||
if (Getattr(n,"feature:new")) {
|
||||
if (GetFlag(n,"feature:new")) {
|
||||
if ((tm = Swig_typemap_lookup_new("newfree",n,"result",0))) {
|
||||
Replaceall(tm,"$source","result");
|
||||
Printf(f->code,"%s\n",tm);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue