diff options
Diffstat (limited to 'Include/internal/pycore_range.h')
| -rw-r--r-- | Include/internal/pycore_range.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Include/internal/pycore_range.h b/Include/internal/pycore_range.h new file mode 100644 index 0000000..809e89a --- /dev/null +++ b/Include/internal/pycore_range.h @@ -0,0 +1,22 @@ +#ifndef Py_INTERNAL_RANGE_H +#define Py_INTERNAL_RANGE_H +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef Py_BUILD_CORE +# error "this header requires Py_BUILD_CORE define" +#endif + +typedef struct { + PyObject_HEAD + long index; + long start; + long step; + long len; +} _PyRangeIterObject; + +#ifdef __cplusplus +} +#endif +#endif /* !Py_INTERNAL_RANGE_H */ |
