[C#] Single file mode (fixes)
Renamed argument '-csout' to '-outfile'. Reformatting (Tab spacing; Pointer style). Chagned html documentation.
This commit is contained in:
parent
0b09978219
commit
b83307e354
2 changed files with 89 additions and 51 deletions
|
|
@ -13,6 +13,9 @@
|
|||
<ul>
|
||||
<li><a href="#CSharp_introduction_swig2_compatibility">SWIG 2 Compatibility</a>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="#CSharp_introduction_command_line_options">C# Command Line Options</a>
|
||||
</ul
|
||||
<li><a href="#CSharp_differences_java">Differences to the Java module</a>
|
||||
<li><a href="#CSharp_void_pointers">Void pointers</a>
|
||||
<li><a href="#CSharp_arrays">C# Arrays</a>
|
||||
|
|
@ -79,6 +82,28 @@ Monodoc, available from the Mono project, has a very useful section titled <a hr
|
|||
In order to minimize name collisions between names generated based on input to SWIG and names used in the generated code from the .NET framework, SWIG 3 fully qualifies the use of all .NET types. Furthermore, SWIG 3 avoids <tt>using</tt> directives in generated code. This breaks backwards compatibility with typemaps, pragmas, etc written for use with SWIG 2 that assume the presence of <tt>using System;</tt> or <tt>using System.Runtime.InteropServices;</tt> directives in the intermediate class imports, module imports, or proxy imports. SWIG 3 supports backwards compatibility though the use of the <tt>SWIG2_CSHARP</tt> macro. If <tt>SWIG2_CSHARP</tt> is defined, SWIG 3 generates <tt>using</tt> directives in the intermediate class, module class, and proxy class code similar to those generated by SWIG 2. This can be done without modifying any of the input code by passing the <tt>-DSWIG2_CSHARP</tt> commandline parameter when executing <tt>swig</tt>.
|
||||
</p>
|
||||
|
||||
<H3><a name="CSharp_introduction_command_line_options"></a>20.1.2 C# Command Line Options</H3>
|
||||
|
||||
|
||||
<p>Additional command line options that can be used to control code generation:</p>
|
||||
|
||||
<p>
|
||||
<b><tt>-outfile <filename></tt></b><br>
|
||||
This command line will instruct the C# module to write all generated C# code to <filename> (located in the output directory) instead of creating separate files for generated classes.<br/>
|
||||
Caveats:
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
The file extension (.cs) will not be automatically be added and needs to be provided.
|
||||
</li>
|
||||
|
||||
<li>
|
||||
Due to possible compiler limits it is not advisable to use <tt>-outfile</tt> when generating wrappers for big projects.
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
<H2><a name="CSharp_differences_java"></a>20.2 Differences to the Java module</H2>
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue