Update for enums and special variables
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5974 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e25d7599c5
commit
2a623ea0b2
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.
|
||||
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>
|
||||
|
||||
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.
|
||||
</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>
|
||||
Typemap equivalent names:
|
||||
|
||||
|
|
@ -110,8 +113,6 @@ $jnicall -> $imcall
|
|||
</li>
|
||||
|
||||
</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>.
|
||||
|
||||
<p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue