gh-138342: Move _PyObject_VisitType() to the internal C API (#139734)

This commit is contained in:
Victor Stinner 2025-10-08 12:10:58 +02:00 committed by GitHub
parent a15aeec29e
commit c4e7d245d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 35 additions and 11 deletions

View file

@ -1047,6 +1047,10 @@ static inline Py_ALWAYS_INLINE void _Py_INCREF_MORTAL(PyObject *op)
}
#endif
/* Utility for the tp_traverse slot of mutable heap types that have no other
* references. */
PyAPI_FUNC(int) _PyObject_VisitType(PyObject *op, visitproc visit, void *arg);
#ifdef __cplusplus
}
#endif