Document null attribute for out typemap for C#
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13956 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4c1b566f62
commit
f26c7b0ac2
1 changed files with 15 additions and 0 deletions
|
|
@ -190,6 +190,21 @@ csattributes C# attributes for attaching to proxy classes/enums
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<p>Additional typemap attributes:</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
The "null" attribute in the "out" typemap can be specified to provide a value for <tt>$null</tt> to expand into for wrapped functions that return non-void. Normally the default value of <tt>0</tt> is used.
|
||||||
|
For example this is needed if you change the return type to void:
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<div class="code"><pre>
|
||||||
|
%typemap(ctype) Status "void"
|
||||||
|
%typemap(out, null="") Status { ... }
|
||||||
|
</pre></div>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<p>Feature equivalent names:</p>
|
<p>Feature equivalent names:</p>
|
||||||
<div class="code"><pre>
|
<div class="code"><pre>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue