mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +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
18
Include/internal/pycore_tupleobject.h
Normal file
18
Include/internal/pycore_tupleobject.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#ifndef Py_INTERNAL_TUPLEOBJECT_H
|
||||
#define Py_INTERNAL_TUPLEOBJECT_H
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if !defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_BUILTIN)
|
||||
# error "this header requires Py_BUILD_CORE or Py_BUILD_CORE_BUILTIN define"
|
||||
#endif
|
||||
|
||||
#include "tupleobject.h"
|
||||
|
||||
#define _PyTuple_ITEMS(op) (_PyTuple_CAST(op)->ob_item)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#endif /* !Py_INTERNAL_TUPLEOBJECT_H */
|
Loading…
Add table
Add a link
Reference in a new issue