document Py_VISIT
as a macro in the docs (#133688)
This commit is contained in:
parent
2cc99b3dd3
commit
bb32f3c698
@ -180,9 +180,9 @@ provided. In order to use this macro, the :c:member:`~PyTypeObject.tp_traverse`
|
|||||||
must name its arguments exactly *visit* and *arg*:
|
must name its arguments exactly *visit* and *arg*:
|
||||||
|
|
||||||
|
|
||||||
.. c:function:: void Py_VISIT(PyObject *o)
|
.. c:macro:: Py_VISIT(o)
|
||||||
|
|
||||||
If *o* is not ``NULL``, call the *visit* callback, with arguments *o*
|
If the :c:expr:`PyObject *` *o* is not ``NULL``, call the *visit* callback, with arguments *o*
|
||||||
and *arg*. If *visit* returns a non-zero value, then return it.
|
and *arg*. If *visit* returns a non-zero value, then return it.
|
||||||
Using this macro, :c:member:`~PyTypeObject.tp_traverse` handlers
|
Using this macro, :c:member:`~PyTypeObject.tp_traverse` handlers
|
||||||
look like::
|
look like::
|
||||||
|
Loading…
x
Reference in New Issue
Block a user