Update for enums and special variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5974 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
126d6773f1
commit
e29fd56f11
1 changed files with 8 additions and 7 deletions
|
|
@ -25,11 +25,6 @@ The rest of this chapter should be read in conjunction with the Java documentati
|
||||||
Director support (virtual method callbacks into C#) has not yet been implemented and is the main missing feature compared to Java.
|
Director support (virtual method callbacks into C#) has not yet been implemented and is the main missing feature compared to Java.
|
||||||
The other missing feature is the lack of typemaps for wrapping STL code as well as a few minor utility typemaps in the various.i library.
|
The other missing feature is the lack of typemaps for wrapping STL code as well as a few minor utility typemaps in the various.i library.
|
||||||
|
|
||||||
<p>
|
|
||||||
Currently enums are wrapped with C# integers.
|
|
||||||
Be warned that this will change in a forthcoming release.
|
|
||||||
C# enums will be generated instead.
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
The most noteable differences to Java are the following:
|
The most noteable differences to Java are the following:
|
||||||
|
|
@ -47,6 +42,14 @@ The <tt>-package</tt> command line option does not exist. The <tt>-namespace <
|
||||||
C/C++ variables are wrapped with C# properties and not JavaBean style getters and setters.
|
C/C++ variables are wrapped with C# properties and not JavaBean style getters and setters.
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
Global constants are generated into the module class. There is no constants interface.
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
The default enum wrapping approach is proper C# enums, not typesafe enums.
|
||||||
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
Typemap equivalent names:
|
Typemap equivalent names:
|
||||||
|
|
||||||
|
|
@ -110,8 +113,6 @@ $jnicall -> $imcall
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
An additional special variable, <tt>$module</tt>, is replaced by the module name,
|
|
||||||
as specified in the <tt>%module</tt> directive or <tt>-module</tt> command line option.
|
|
||||||
The intermediary classname has <tt>PINVOKE</tt> appended after the module name instead of <tt>JNI</tt>, for example <tt>modulenamePINVOKE</tt>.
|
The intermediary classname has <tt>PINVOKE</tt> appended after the module name instead of <tt>JNI</tt>, for example <tt>modulenamePINVOKE</tt>.
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue