Allow disabling signal handling, turn signal handling off by default.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -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); }
|
||||
|
||||
Reference in New Issue
Block a user