Merge branch 'typemap-colon'

* typemap-colon:
  Incoporate review suggestions
  Allow referencing of typemap keywords inside of "$typemap("
This commit is contained in:
William S Fulton 2022-06-01 07:57:01 +01:00
commit da40946aaa
4 changed files with 46 additions and 14 deletions

View file

@ -2457,6 +2457,14 @@ The result is the following expansion
</pre>
</div>
<p>
The first argument, the typemap method, can look up the attribute of a
typemap by appending a colon and the keyword. For example,
<tt>$typemap(directorin:descriptor, $type)</tt> would be replaced by <tt>"D"</tt> if <tt>type</tt> is a <tt>double</tt>.
</p>
<p>
<em>New in SWIG 4.1.</em>
</p>
<H3><a name="Typemaps_special_variable_attributes">14.4.5 Special variables and typemap attributes</a></H3>