mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-138342: Move _PyObject_VisitType() to the internal C API (#139734)
This commit is contained in:
parent
a15aeec29e
commit
c4e7d245d6
15 changed files with 35 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue