Skip to content

Make it clear Py_VISIT is a macro in the docs #133688

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 18, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Doc/c-api/gcsupport.rst
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
must name its arguments exactly *visit* and *arg*:


.. c:function:: void Py_VISIT(PyObject *o)
.. c:macro:: Py_VISIT(PyObject *o)

Check warning on line 183 in Doc/c-api/gcsupport.rst

View workflow job for this annotation

GitHub Actions / Docs / Docs

Invalid C declaration: Expected identifier, ')', or ',' in macro parameter list. [error at 18]

If *o* is not ``NULL``, call the *visit* callback, with arguments *o*
and *arg*. If *visit* returns a non-zero value, then return it.
Expand Down
Loading