Allow disabling signal handling, turn signal handling off by default.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2020-10-18 17:18:27 +02:00
parent c445536aed
commit 09bc55ec94
4 changed files with 9 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ std::string ExceptionHandler::_ArbutilsLastException = "";
/// @brief Returns a null-terminated C string to the last exception found.
export const char* Arbutils_C_GetLastException() { return ExceptionHandler::GetLastException(); }
#if !WINDOWS
#if !WINDOWS && SIGNAL_HANDLING
static ArbUt::SignalHandling sh;
/// @brief Sets a callback to a function to run when a signal occurs.
export void Arbutils_C_SetSignalCallback(void (*callback)(const char*)) { sh.SetCallback(callback); }