%newobject support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7377 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
562759198b
commit
b366ef3d48
2 changed files with 20 additions and 15 deletions
|
|
@ -438,6 +438,11 @@ public:
|
|||
Replaceall(tm,"$source", "result");
|
||||
Replaceall(tm,"$target", "Tcl_GetObjResult(interp)");
|
||||
Replaceall(tm,"$result", "Tcl_GetObjResult(interp)");
|
||||
if(Getattr(n,"feature:new")) {
|
||||
Replaceall(tm,"$owner","1");
|
||||
} else {
|
||||
Replaceall(tm,"$owner","0");
|
||||
}
|
||||
Printf(f->code,"%s\n", tm);
|
||||
} else {
|
||||
Swig_warning(WARN_TYPEMAP_OUT_UNDEF, input_file, line_number,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue