Replace reference to SWIG_POINTER_EXCEPTION in docs
This has only been present for backward compatibility since 2006 and now has the value 0 so doesn't do anything, so don't use it as an example of a flag in the docs.
This commit is contained in:
parent
047928d670
commit
37c8185bd3
1 changed files with 3 additions and 4 deletions
|
|
@ -5377,10 +5377,9 @@ int SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags)</t
|
|||
Converts a Python object <tt>obj</tt> to a C pointer. The result of the conversion is placed
|
||||
into the pointer located at <tt>ptr</tt>. <tt>ty</tt> is a SWIG type descriptor structure.
|
||||
<tt>flags</tt> is used to handle error checking and other aspects of conversion. It is the
|
||||
bitwise-or of several flag values including <tt>SWIG_POINTER_EXCEPTION</tt> and
|
||||
<tt>SWIG_POINTER_DISOWN</tt>. The first flag makes the function raise an exception on type
|
||||
error. The second flag additionally
|
||||
steals ownership of an object. Returns 0 on success and -1 on error.
|
||||
bitwise-or of several flag values including <tt>SWIG_POINTER_DISOWN</tt> (which steals
|
||||
ownership of the object) and <tt>SWIG_POINTER_NO_NULL</tt> (which makes the conversion fail
|
||||
if the C pointer would be <tt>NULL</tt>). Returns 0 on success and -1 on error.
|
||||
</div>
|
||||
|
||||
<p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue