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

This commit is contained in:
Deukhoofd committed 2020-10-18 17:18:27 +02:00
1 parent c445536aed
commit 09bc55ec94
4 files changed
+9 -2

No files matched your search

+1 -1
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); }