Dont include signal handler in Windows.
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2020-08-20 13:10:10 +02:00
parent 8dac6c632b
commit efe902d045
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 5 additions and 0 deletions

View File

@ -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