Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:06:43

0001 #ifndef Py_INTERNAL_EXCEPTIONS_H
0002 #define Py_INTERNAL_EXCEPTIONS_H
0003 #ifdef __cplusplus
0004 extern "C" {
0005 #endif
0006 
0007 #ifndef Py_BUILD_CORE
0008 #  error "this header requires Py_BUILD_CORE define"
0009 #endif
0010 
0011 
0012 /* runtime lifecycle */
0013 
0014 extern PyStatus _PyExc_InitState(PyInterpreterState *);
0015 extern PyStatus _PyExc_InitGlobalObjects(PyInterpreterState *);
0016 extern int _PyExc_InitTypes(PyInterpreterState *);
0017 extern void _PyExc_Fini(PyInterpreterState *);
0018 
0019 
0020 /* other API */
0021 
0022 struct _Py_exc_state {
0023     // The dict mapping from errno codes to OSError subclasses
0024     PyObject *errnomap;
0025     PyBaseExceptionObject *memerrors_freelist;
0026     int memerrors_numfree;
0027     // The ExceptionGroup type
0028     PyObject *PyExc_ExceptionGroup;
0029 };
0030 
0031 extern void _PyExc_ClearExceptionGroupType(PyInterpreterState *);
0032 
0033 
0034 #ifdef __cplusplus
0035 }
0036 #endif
0037 #endif /* !Py_INTERNAL_EXCEPTIONS_H */