Commit 76957eb
File tree
1 file changed
+2
-2
lines changed- Doc/c-api
- Original file line numberDiff line numberDiff line change@@ -180,9 +180,9 @@ provided. In order to use this macro, the :c:member:`~PyTypeObject.tp_traverse`
180
180
must name its arguments exactly *visit* and *arg*:181
181
182
182
183
-
.. c:function:: void Py_VISIT(PyObject *o)183
+
.. c:macro:: Py_VISIT(o)184
184
185
-
If *o* is not ``NULL``, call the *visit* callback, with arguments *o*185
+
If the :c:expr:`PyObject *` *o* is not ``NULL``, call the *visit* callback, with arguments *o*186
186
and *arg*. If *visit* returns a non-zero value, then return it.187
187
Using this macro, :c:member:`~PyTypeObject.tp_traverse` handlers188
188
look like::
- Original file line numberDiff line numberDiff line change
0 commit comments