mirror of
https://github.com/python/cpython.git
synced 2025-08-22 01:35:16 +00:00
gh-92135: Rename _Py_reinterpret_cast() to _Py_CAST() (#92230)
Rename also _Py_static_cast() to _Py_STATIC_CAST().
This commit is contained in:
parent
f6f36cc269
commit
fbd5539a54
9 changed files with 24 additions and 24 deletions
|
@ -182,9 +182,9 @@ PyAPI_FUNC(void) PyObject_GC_UnTrack(void *);
|
|||
PyAPI_FUNC(void) PyObject_GC_Del(void *);
|
||||
|
||||
#define PyObject_GC_New(type, typeobj) \
|
||||
_Py_reinterpret_cast(type*, _PyObject_GC_New(typeobj))
|
||||
_Py_CAST(type*, _PyObject_GC_New(typeobj))
|
||||
#define PyObject_GC_NewVar(type, typeobj, n) \
|
||||
_Py_reinterpret_cast(type*, _PyObject_GC_NewVar((typeobj), (n)))
|
||||
_Py_CAST(type*, _PyObject_GC_NewVar((typeobj), (n)))
|
||||
|
||||
PyAPI_FUNC(int) PyObject_GC_IsTracked(PyObject *);
|
||||
PyAPI_FUNC(int) PyObject_GC_IsFinalized(PyObject *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue