Skip to content

Commit 1b96cc1

Browse files
authored
Make it clear Py_VISIT is a macro in the docs
It has the hidden return inside it, so to me the `void` return type is a little misleading because it implies that it behaves like a C function.
1 parent 102f825 commit 1b96cc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/c-api/gcsupport.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ provided. In order to use this macro, the :c:member:`~PyTypeObject.tp_traverse`
180180
must name its arguments exactly *visit* and *arg*:
181181
182182
183-
.. c:function:: void Py_VISIT(PyObject *o)
183+
.. c:macro:: Py_VISIT(PyObject *o)
184184
185185
If *o* is not ``NULL``, call the *visit* callback, with arguments *o*
186186
and *arg*. If *visit* returns a non-zero value, then return it.

0 commit comments

Comments
 (0)