diff --git a/CInterface/Core.cpp b/CInterface/Core.cpp index 90fa41d..c3f8ef6 100644 --- a/CInterface/Core.cpp +++ b/CInterface/Core.cpp @@ -4,6 +4,11 @@ std::string ExceptionHandler::_ArbutilsLastException = ""; export const char* Arbutils_C_GetLastException() { return ExceptionHandler::GetLastException(); } +#if !WINDOWS static ArbUt::SignalHandling sh; export void Arbutils_C_SetSignalCallback(void (*callback)(const char*)) { sh.SetCallback(callback); } 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 \ No newline at end of file