Add SIGUSR1 and SIGUSR2 macros for Windows

This commit is contained in:
Mohamed Oulmahdi 2021-08-18 15:47:17 +02:00
parent 164ce4b334
commit 3a9e7150f7
1 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,11 @@ extern "C" void stackSignalHandler(int sig) {
}
}
#ifdef _WIN32
#define SIGUSR1 10
#define SIGUSR2 12
#endif
void setupStackSignal() {
std::signal(SIGUSR1, &stackSignalHandler);
}