Arbutils/CInterface/Core.cpp

10 lines
420 B
C++

#include "Core.hpp"
#include "../src/SignalHandling.hpp"
std::string ExceptionHandler::_ArbutilsLastException = "";
export const char* Arbutils_C_GetLastException() { return ExceptionHandler::GetLastException(); }
static ArbUt::SignalHandling sh;
export void Arbutils_C_SetSignalCallback(void (*callback)(const char*)) { sh = ArbUt::SignalHandling(callback); }
export void Arbutils_C_RaiseSignal() { raise(SIGSEGV); }