From efe902d0457f66cf29097cbb2baf541ae4692ac3 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Thu, 20 Aug 2020 13:10:10 +0200 Subject: [PATCH] Dont include signal handler in Windows. --- CInterface/Core.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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