mirror of
https://github.com/python/cpython.git
synced 2025-09-01 06:28:36 +00:00

* pycore_intrinsics.h does nothing if included twice (add #ifndef and #define). * Update Tools/cases_generator/generate_cases.py to generate the Py_BUILD_CORE test. * _bz2, _lzma, _opcode and zlib extensions now define the Py_BUILD_CORE_MODULE macro to use internal headers (pycore_code.h, pycore_intrinsics.h and pycore_blocks_output_buffer.h).
29 lines
645 B
C
29 lines
645 B
C
#ifndef Py_EMSCRIPTEN_SIGNAL_H
|
|
#define Py_EMSCRIPTEN_SIGNAL_H
|
|
|
|
#if defined(__EMSCRIPTEN__)
|
|
|
|
#ifndef Py_BUILD_CORE
|
|
# error "this header requires Py_BUILD_CORE define"
|
|
#endif
|
|
|
|
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
|