2020-07-19 09:08:05 +00:00
|
|
|
#include "Core.hpp"
|
2020-08-18 16:41:18 +00:00
|
|
|
#include "../src/SignalHandling.hpp"
|
2020-07-19 09:08:05 +00:00
|
|
|
|
2020-07-28 17:24:35 +00:00
|
|
|
std::string ExceptionHandler::_ArbutilsLastException = "";
|
2020-07-19 09:08:05 +00:00
|
|
|
export const char* Arbutils_C_GetLastException() { return ExceptionHandler::GetLastException(); }
|
2020-08-18 16:41:18 +00:00
|
|
|
|
|
|
|
static ArbUt::SignalHandling sh;
|
|
|
|
export void Arbutils_C_SetSignalCallback(void (*callback)(const char*)) { sh = ArbUt::SignalHandling(callback); }
|
|
|
|
export void Arbutils_C_RaiseSignal() { raise(SIGSEGV); }
|