new typemap: javaconstruct. This typemap contains the code that goes into the proxy constructor.
The javaconstruct_director typemap is used instead when directors are enabled. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6923 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e5addbab84
commit
9cfc9129fd
1 changed files with 9 additions and 0 deletions
|
|
@ -943,6 +943,15 @@
|
||||||
}
|
}
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
%typemap(javaconstruct) SWIGTYPE {
|
||||||
|
this($imcall, true);
|
||||||
|
}
|
||||||
|
|
||||||
|
%typemap(javaconstruct_director) SWIGTYPE {
|
||||||
|
this($imcall, true);
|
||||||
|
$moduleJNI.$javaclassname_director_connect(this, swigCPtr);
|
||||||
|
}
|
||||||
|
|
||||||
%typemap(javadestruct, methodname="delete") SWIGTYPE {
|
%typemap(javadestruct, methodname="delete") SWIGTYPE {
|
||||||
if(swigCPtr != 0 && swigCMemOwn) {
|
if(swigCPtr != 0 && swigCMemOwn) {
|
||||||
swigCMemOwn = false;
|
swigCMemOwn = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue