Implement support for SWIGTYPE* DISOWN typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7381 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6982a6adc6
commit
509a391877
3 changed files with 21 additions and 4 deletions
|
|
@ -724,6 +724,12 @@ public:
|
|||
Replaceall(tm,"$target",ln);
|
||||
Replaceall(tm,"$source",source);
|
||||
Replaceall(tm,"$input",source);
|
||||
if (Getattr(p,"wrap:disown") || (Getattr(p,"tmap:in:disown"))) {
|
||||
Replaceall(tm,"$disown","SWIG_POINTER_DISOWN");
|
||||
}
|
||||
else {
|
||||
Replaceall(tm,"$disown","0");
|
||||
}
|
||||
Setattr(p,"emit:input",Copy(source));
|
||||
Printf(f->code,"%s\n", tm);
|
||||
p = Getattr(p,"tmap:in:next");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue