mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-35081: Add Include/internal/pycore_tupleobject.h (GH-10705)
Move _PyTuple_ITEMS() to a new header file: Include/internal/pycore_tupleobject.h
This commit is contained in:
parent
8ac6539d85
commit
ec13b9322d
12 changed files with 30 additions and 5 deletions
|
@ -61,10 +61,6 @@ PyAPI_FUNC(void) _PyTuple_MaybeUntrack(PyObject *);
|
|||
#define PyTuple_GET_ITEM(op, i) (_PyTuple_CAST(op)->ob_item[i])
|
||||
#define PyTuple_GET_SIZE(op) (assert(PyTuple_Check(op)), Py_SIZE(op))
|
||||
|
||||
#ifdef Py_BUILD_CORE
|
||||
# define _PyTuple_ITEMS(op) (_PyTuple_CAST(op)->ob_item)
|
||||
#endif
|
||||
|
||||
/* Macro, *only* to be used to fill in brand new tuples */
|
||||
#define PyTuple_SET_ITEM(op, i, v) (_PyTuple_CAST(op)->ob_item[i] = v)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue