add docs for new -nodefault, -nodefaultdtor and -oldnodefault
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8023 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e5482f9e08
commit
c2073866b3
5 changed files with 182 additions and 43 deletions
|
|
@ -6124,6 +6124,7 @@ The following interface file code should be placed before SWIG parses the above
|
|||
|
||||
// Do not generate the default proxy constructor or destructor
|
||||
%nodefault Butler;
|
||||
%nodefaultdestructor Butler;
|
||||
|
||||
// Add in pure Java code proxy constructor
|
||||
%typemap(javacode) Butler %{
|
||||
|
|
@ -6159,6 +6160,12 @@ Note that the JNI code sets the proxy's <tt>swigCPtr</tt> member variable to poi
|
|||
The <tt>swigCMemOwn</tt> remains unchanged (at false), so that the proxy does not own the memory.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Note: prior to 1.3.28, the %nodefault directive disabled the default
|
||||
constructor and destructor at the same time. Now it is required to explicitly use
|
||||
%nodefault and %nodefaultdestructor to achieve the same result.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
The second approach offers a more object oriented interface to the Java user.
|
||||
We do this by making the Java proxy class's
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue