Dont include signal handler in Windows.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
8dac6c632b
commit
efe902d045
|
@ -4,6 +4,11 @@
|
||||||
std::string ExceptionHandler::_ArbutilsLastException = "";
|
std::string ExceptionHandler::_ArbutilsLastException = "";
|
||||||
export const char* Arbutils_C_GetLastException() { return ExceptionHandler::GetLastException(); }
|
export const char* Arbutils_C_GetLastException() { return ExceptionHandler::GetLastException(); }
|
||||||
|
|
||||||
|
#if !WINDOWS
|
||||||
static ArbUt::SignalHandling sh;
|
static ArbUt::SignalHandling sh;
|
||||||
export void Arbutils_C_SetSignalCallback(void (*callback)(const char*)) { sh.SetCallback(callback); }
|
export void Arbutils_C_SetSignalCallback(void (*callback)(const char*)) { sh.SetCallback(callback); }
|
||||||
export void Arbutils_C_RaiseSignal() { raise(SIGSEGV); }
|
export void Arbutils_C_RaiseSignal() { raise(SIGSEGV); }
|
||||||
|
#else
|
||||||
|
export void Arbutils_C_SetSignalCallback(void (*callback)(const char*)) { }
|
||||||
|
export void Arbutils_C_RaiseSignal() { raise(SIGSEGV); }
|
||||||
|
#endif
|
Loading…
Reference in New Issue