Remove incorrect documentation about %ref and %unref
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12006 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
eef9044477
commit
58a7e2c3d6
1 changed files with 2 additions and 21 deletions
|
|
@ -2124,8 +2124,8 @@ Object 'RCObj', which implements the ref/unref idiom.
|
|||
|
||||
<p>
|
||||
To tell SWIG that 'RCObj' and all its derived classes are reference
|
||||
counted objects, you use the "ref" and "unref" features, or
|
||||
<tt>%ref</tt> and <tt>%unref</tt> directives (since 1.3.28). For example:
|
||||
counted objects, you use the "ref" and "unref" features.
|
||||
For example:
|
||||
</p>
|
||||
|
||||
|
||||
|
|
@ -2143,25 +2143,6 @@ counted objects, you use the "ref" and "unref" features, or
|
|||
</pre>
|
||||
</div>
|
||||
|
||||
or, using the directive form:
|
||||
|
||||
|
||||
<div class="code">
|
||||
<pre>
|
||||
%module example
|
||||
...
|
||||
|
||||
%ref RCObj "$this->ref();"
|
||||
%unref RCObj "$this->unref();"
|
||||
|
||||
%include "rcobj.h"
|
||||
%include "A.h"
|
||||
...
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<p>
|
||||
where the code passed to the "ref" and "unref" features will be
|
||||
executed as needed whenever a new object is passed to python, or when
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue