%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:
William S Fulton 2005-08-18 20:36:38 +00:00
commit b366ef3d48
2 changed files with 20 additions and 15 deletions

View file

@ -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,