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/SWIG@7564 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
edf98b69c7
commit
656cb7ab06
15 changed files with 36 additions and 36 deletions
|
|
@ -472,7 +472,7 @@ public:
|
|||
int i = 0;
|
||||
int numargs;
|
||||
int numreq;
|
||||
int newobj = Getattr(n,"feature:new") ? 1 : 0;
|
||||
int newobj = GetFlag(n,"feature:new");
|
||||
String *nodeType = Getattr(n, "nodeType");
|
||||
int constructor = !Cmp(nodeType, "constructor");
|
||||
int destructor = (!Cmp(nodeType, "destructor"));
|
||||
|
|
@ -734,7 +734,7 @@ public:
|
|||
|
||||
// Look for any remaining cleanup
|
||||
|
||||
if (Getattr(n,"feature:new")) {
|
||||
if (GetFlag(n,"feature:new")) {
|
||||
if ((tm = Swig_typemap_lookup_new("newfree",n,"result",0))) {
|
||||
Replaceall(tm,"$source","swig_result");
|
||||
Printv(f->code, tm, "\n",NIL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue