Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@scoder
Copy link
Contributor

@scoder scoder commented Jun 28, 2024

Based off #6276 since it needs the same fix.

Previously, we called Py_VISIT() and Py_CLEAR() on them, which is wrong.
Copy link
Contributor

@da-woods da-woods left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... otherwise looks good

#endif
// No-op macro for calling Py_VISIT() on known constants that can never participate in reference cycles.
// Users can define it to "Py_VISIT(obj)" to help in debugging reference issues.
#define __Pyx_VISIT_CONST(obj)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want users to be able to define it, would it make sense to do ifndef?

@scoder
Copy link
Contributor Author

scoder commented Jun 28, 2024 via email

@scoder
Copy link
Contributor Author

scoder commented Jun 29, 2024

Added macro option, rebased on #6276

@scoder scoder merged commit 926586f into cython:master Jun 30, 2024
@scoder scoder deleted the no_visit_const branch June 30, 2024 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants