mirror of
https://github.com/python/cpython.git
synced 2025-09-03 23:41:18 +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
|
@ -9,10 +9,10 @@ PyAPI_DATA(PyTypeObject) PyCMethod_Type;
|
|||
|
||||
#define _PyCFunctionObject_CAST(func) \
|
||||
(assert(PyCFunction_Check(func)), \
|
||||
_Py_reinterpret_cast(PyCFunctionObject*, (func)))
|
||||
_Py_CAST(PyCFunctionObject*, (func)))
|
||||
#define _PyCMethodObject_CAST(func) \
|
||||
(assert(PyCMethod_Check(func)), \
|
||||
_Py_reinterpret_cast(PyCMethodObject*, (func)))
|
||||
_Py_CAST(PyCMethodObject*, (func)))
|
||||
|
||||
/* Macros for direct access to these values. Type checks are *not*
|
||||
done, so use with care. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue