mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
bpo-39573: Py_TYPE becomes a static inline function (GH-28128)
Convert the Py_TYPE() and Py_SIZE() macros to static inline functions. The Py_SET_TYPE() and Py_SET_SIZE() functions must now be used to set an object type and size.
This commit is contained in:
parent
4dc4300c68
commit
cb15afcccf
5 changed files with 52 additions and 9 deletions
|
|
@ -0,0 +1,3 @@
|
|||
Convert the :c:func:`Py_TYPE` and :c:func:`Py_SIZE` macros to static inline
|
||||
functions. The :c:func:`Py_SET_TYPE` and :c:func:`Py_SET_SIZE` functions
|
||||
must now be used to set an object type and size. Patch by Victor Stinner.
|
||||
Loading…
Add table
Add a link
Reference in a new issue