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@6923 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2005-01-10 22:58:39 +00:00
commit 2394fc2d86

View file

@ -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 {
if(swigCPtr != 0 && swigCMemOwn) {
swigCMemOwn = false;