Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-11-19 09:50:46

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 #ifdef Py_GIL_DISABLED
0028     PyMutex memerrors_lock;
0029 #endif
0030     // The ExceptionGroup type
0031     PyObject *PyExc_ExceptionGroup;
0032 };
0033 
0034 extern void _PyExc_ClearExceptionGroupType(PyInterpreterState *);
0035 
0036 
0037 #ifdef __cplusplus
0038 }
0039 #endif
0040 #endif /* !Py_INTERNAL_EXCEPTIONS_H */