diff options
author | Victor Stinner <vstinner@python.org> | 2024-07-13 21:07:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-13 21:07:49 (GMT) |
commit | a2bec77d25b11f50362a7117223f6d1d5029a909 (patch) | |
tree | 0052b116ab9c3337c45525db52fe883580f766ba /Include/cpython/code.h | |
parent | b5805892d55e769335c11a994b586355720263ba (diff) | |
download | cpython-a2bec77d25b11f50362a7117223f6d1d5029a909.zip cpython-a2bec77d25b11f50362a7117223f6d1d5029a909.tar.gz cpython-a2bec77d25b11f50362a7117223f6d1d5029a909.tar.bz2 |
gh-120642: Move _PyCode_CODE() to the internal C API (#121644)
Move _PyCode_CODE() and _PyCode_NBYTES() macros to the internal C API
since they use _Py_CODEUNIT which is only part of the internal C API.
Diffstat (limited to 'Include/cpython/code.h')
-rw-r--r-- | Include/cpython/code.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/Include/cpython/code.h b/Include/cpython/code.h index 07ed520..58d93fc 100644 --- a/Include/cpython/code.h +++ b/Include/cpython/code.h @@ -194,9 +194,6 @@ Py_DEPRECATED(3.13) static inline int PyCode_GetFirstFree(PyCodeObject *op) { return PyUnstable_Code_GetFirstFree(op); } -#define _PyCode_CODE(CO) _Py_RVALUE((_Py_CODEUNIT *)(CO)->co_code_adaptive) -#define _PyCode_NBYTES(CO) (Py_SIZE(CO) * (Py_ssize_t)sizeof(_Py_CODEUNIT)) - /* Unstable public interface */ PyAPI_FUNC(PyCodeObject *) PyUnstable_Code_New( int, int, int, int, int, PyObject *, PyObject *, |