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:
William S Fulton 2012-12-11 18:43:56 +00:00
commit f26c7b0ac2

View file

@ -190,6 +190,21 @@ csattributes C# attributes for attaching to proxy classes/enums
</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>
<p>Feature equivalent names:</p>
<div class="code"><pre>