Guido van Rossum | b674c3b | 1992-01-19 16:32:47 +0000 | [diff] [blame] | 1 | |
Fred Drake | 5eb6d4e | 2000-07-08 23:37:28 +0000 | [diff] [blame] | 2 | #ifndef Py_INTRCHECK_H |
| 3 | #define Py_INTRCHECK_H |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
| 7 | |
Mark Hammond | 91a681d | 2002-08-12 07:21:58 +0000 | [diff] [blame] | 8 | PyAPI_FUNC(int) PyOS_InterruptOccurred(void); |
| 9 | PyAPI_FUNC(void) PyOS_InitInterrupts(void); |
| 10 | PyAPI_FUNC(void) PyOS_AfterFork(void); |
Serhiy Storchaka | 9fab79b | 2016-09-11 11:03:14 +0300 | [diff] [blame] | 11 | |
| 12 | #ifndef Py_LIMITED_API |
Antoine Pitrou | 6dd381e | 2011-11-21 21:26:56 +0100 | [diff] [blame] | 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 |
Serhiy Storchaka | 9fab79b | 2016-09-11 11:03:14 +0300 | [diff] [blame] | 19 | #endif /* !Py_LIMITED_API */ |
Guido van Rossum | a330996 | 1993-07-28 09:05:47 +0000 | [diff] [blame] | 20 | |
| 21 | #ifdef __cplusplus |
| 22 | } |
| 23 | #endif |
| 24 | #endif /* !Py_INTRCHECK_H */ |