pycore_unionobject.h 682 B

1234567891011121314151617181920212223
  1. #ifndef Py_INTERNAL_UNIONOBJECT_H
  2. #define Py_INTERNAL_UNIONOBJECT_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #ifndef Py_BUILD_CORE
  7. # error "this header requires Py_BUILD_CORE define"
  8. #endif
  9. extern PyTypeObject _PyUnion_Type;
  10. #define _PyUnion_Check(op) Py_IS_TYPE((op), &_PyUnion_Type)
  11. extern PyObject *_Py_union_type_or(PyObject *, PyObject *);
  12. #define _PyGenericAlias_Check(op) PyObject_TypeCheck((op), &Py_GenericAliasType)
  13. extern PyObject *_Py_subs_parameters(PyObject *, PyObject *, PyObject *, PyObject *);
  14. extern PyObject *_Py_make_parameters(PyObject *);
  15. extern PyObject *_Py_union_args(PyObject *self);
  16. #ifdef __cplusplus
  17. }
  18. #endif
  19. #endif /* !Py_INTERNAL_UNIONOBJECT_H */