Remove thread_local as it causes issues with shared library linking.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-07-28 19:24:35 +02:00
parent 1000893652
commit 18c7c3ddcb
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
#include "Core.hpp"
std::string ExceptionHandler::_ArbutilsLastException = "";
export const char* Arbutils_C_GetLastException() { return ExceptionHandler::GetLastException(); }

View File

@ -9,7 +9,7 @@
#define ArbutilsException 3;
class ExceptionHandler {
static thread_local std::string _ArbutilsLastException;
static std::string _ArbutilsLastException;
public:
static void SetLastException(const std::exception& e) { _ArbutilsLastException = std::string(e.what()); }