2022-04-03 17:58:52 -03:00
|
|
|
#ifndef Py_EMSCRIPTEN_SIGNAL_H
|
|
|
|
#define Py_EMSCRIPTEN_SIGNAL_H
|
|
|
|
|
|
|
|
#if defined(__EMSCRIPTEN__)
|
|
|
|
|
2023-08-21 14:15:52 -03:00
|
|
|
#ifndef Py_BUILD_CORE
|
|
|
|
# error "this header requires Py_BUILD_CORE define"
|
|
|
|
#endif
|
|
|
|
|
2022-04-03 17:58:52 -03:00
|
|
|
void
|
|
|
|
_Py_CheckEmscriptenSignals(void);
|
|
|
|
|
|
|
|
void
|
|
|
|
_Py_CheckEmscriptenSignalsPeriodically(void);
|
|
|
|
|
|
|
|
#define _Py_CHECK_EMSCRIPTEN_SIGNALS() _Py_CheckEmscriptenSignals()
|
|
|
|
|
|
|
|
#define _Py_CHECK_EMSCRIPTEN_SIGNALS_PERIODICALLY() _Py_CheckEmscriptenSignalsPeriodically()
|
|
|
|
|
|
|
|
extern int Py_EMSCRIPTEN_SIGNAL_HANDLING;
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
#define _Py_CHECK_EMSCRIPTEN_SIGNALS()
|
|
|
|
#define _Py_CHECK_EMSCRIPTEN_SIGNALS_PERIODICALLY()
|
|
|
|
|
|
|
|
#endif // defined(__EMSCRIPTEN__)
|
|
|
|
|
|
|
|
#endif // ndef Py_EMSCRIPTEN_SIGNAL_H
|