| 1 |
#ifndef Py_INTERNAL_UNIONOBJECT_H |
| 2 |
#define Py_INTERNAL_UNIONOBJECT_H |
| 3 |
#ifdef __cplusplus |
| 4 |
extern "C" { |
| 5 |
#endif |
| 6 |
|
| 7 |
#ifndef Py_BUILD_CORE |
| 8 |
# error "this header requires Py_BUILD_CORE define" |
| 9 |
#endif |
| 10 |
|
| 11 |
// For extensions created by test_peg_generator |
| 12 |
PyAPI_DATA(PyTypeObject) _PyUnion_Type; |
| 13 |
PyAPI_FUNC(PyObject *) _Py_union_type_or(PyObject *, PyObject *); |
| 14 |
|
| 15 |
#define _PyUnion_Check(op) Py_IS_TYPE((op), &_PyUnion_Type) |
| 16 |
|
| 17 |
#define _PyGenericAlias_Check(op) PyObject_TypeCheck((op), &Py_GenericAliasType) |
| 18 |
extern PyObject *_Py_subs_parameters(PyObject *, PyObject *, PyObject *, PyObject *); |
| 19 |
extern PyObject *_Py_make_parameters(PyObject *); |
| 20 |
extern PyObject *_Py_union_args(PyObject *self); |
| 21 |
extern PyObject *_Py_union_from_tuple(PyObject *args); |
| 22 |
|
| 23 |
#ifdef __cplusplus |
| 24 |
} |
| 25 |
#endif |
| 26 |
#endif /* !Py_INTERNAL_UNIONOBJECT_H */ |