Small update to documentation in Typemaps.html, to warn about use of local variables in typemaps for multiple types.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10221 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Mark Gossage 2008-01-30 03:40:37 +00:00
commit 560b18eb3f
2 changed files with 25 additions and 0 deletions

View file

@ -1,6 +1,10 @@
Version 1.3.34 (in progress)
============================
01/30/2008: mgossage
Small update to documentation in Typemaps.html, to warn about use of local
variables in typemaps for multiple types.
01/25/2008: wsfulton
[Java] Fix bug reported by Kevin Mills in ARRAYSOFCLASSES typemaps where any
changes made to an array element passed from Java to C are not reflected back

View file

@ -1617,6 +1617,27 @@ Some typemaps do not recognize local variables (or they may simply not
apply). At this time, only typemaps that apply to argument conversion support this.
</p>
<p>
<b>Note:</b>
</p>
<p>
When declaring a typemap for multiple types,
each type must have its own local variable declaration.
</p>
<div class="code">
<pre>
%typemap(in) const std::string *, std::string * (std::string temp) // NO!
// only std::string * has a local variable
// const std::string * does not (oops)
....
%typemap(in) const std::string * (std::string temp), std::string * (std::string temp) // Correct
....
</pre>
</div>
<H3><a name="Typemaps_special_variables"></a>10.4.3 Special variables</H3>