Remove thread_local as it causes issues with shared library linking.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
2 files changed
+2
-1
No files matched your search
@@ -1,3 +1,4 @@
|
|||||||
#include "Core.hpp"
|
#include "Core.hpp"
|
||||||
|
|
||||||
|
std::string ExceptionHandler::_ArbutilsLastException = "";
|
||||||
export const char* Arbutils_C_GetLastException() { return ExceptionHandler::GetLastException(); }
|
export const char* Arbutils_C_GetLastException() { return ExceptionHandler::GetLastException(); }
|
||||||
+1
-1
@@ -9,7 +9,7 @@
|
|||||||
#define ArbutilsException 3;
|
#define ArbutilsException 3;
|
||||||
|
|
||||||
class ExceptionHandler {
|
class ExceptionHandler {
|
||||||
static thread_local std::string _ArbutilsLastException;
|
static std::string _ArbutilsLastException;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static void SetLastException(const std::exception& e) { _ArbutilsLastException = std::string(e.what()); }
|
static void SetLastException(const std::exception& e) { _ArbutilsLastException = std::string(e.what()); }
|
||||||
|
|||||||
Reference in new issue
Block a user