Add support for "cxxcode" typemap
This allows injecting arbitrary code into the generated C++ classes and can be useful for defining extra constructors or operators, for example.
This commit is contained in:
parent
fd11a591a3
commit
e2d32f33b2
2 changed files with 18 additions and 1 deletions
|
|
@ -496,6 +496,11 @@ area: 7.068583
|
|||
<td>Defines how to transform <tt>ctype</tt> value returned by a function to <tt>cxxouttype</tt>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><tt>cxxcode</tt></td>
|
||||
<td>May contain arbitrary code that will be injected in the declaration of the C++ wrapper class corresponding to the given type. Ignored for non-class types.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<H3>C Typemaps, a Code Generation Walkthrough</H3>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue