• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
22 #ifdef __cplusplus
23 }
24 #endif
25 #endif /* !Py_INTERNAL_UNIONOBJECT_H */
26