PHP: document byref typemap attribute
This commit is contained in:
parent
6a72e16b37
commit
324818030b
1 changed files with 6 additions and 0 deletions
|
|
@ -513,6 +513,12 @@ So if you use these REF typemaps, you should ensure that SWIG≥3.0 is
|
||||||
used to generate wrappers from your interface file.
|
used to generate wrappers from your interface file.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
In case you write your own typemaps, SWIG supports an attribute called
|
||||||
|
<tt>byref</tt>: if you set that, then SWIG will make sure that the generated
|
||||||
|
wrapper function will want the input parameter as a reference.
|
||||||
|
</p>
|
||||||
|
|
||||||
<div class="code"><pre>
|
<div class="code"><pre>
|
||||||
%module example
|
%module example
|
||||||
%include "phppointers.i"
|
%include "phppointers.i"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue