1 2 #ifndef Py_INTRCHECK_H 3 #define Py_INTRCHECK_H 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 PyAPI_FUNC(int) PyOS_InterruptOccurred(void); 9 PyAPI_FUNC(void) PyOS_InitInterrupts(void); 10 PyAPI_FUNC(void) PyOS_AfterFork(void); 11 12 #ifndef Py_LIMITED_API 13 PyAPI_FUNC(int) _PyOS_IsMainThread(void); 14 15 #ifdef MS_WINDOWS 16 /* windows.h is not included by Python.h so use void* instead of HANDLE */ 17 PyAPI_FUNC(void*) _PyOS_SigintEvent(void); 18 #endif 19 #endif /* !Py_LIMITED_API */ 20 21 #ifdef __cplusplus 22 } 23 #endif 24 #endif /* !Py_INTRCHECK_H */ 25