HookThrow::HookThrow()
{
- void *handle = dlopen(0, RTLD_LAZY);
+ void *handle = dlopen(nullptr, RTLD_LAZY);
orig_cxa_throw = reinterpret_cast<CxaThrowType *>(dlvsym(handle, "__cxa_throw", "CXXABI_1.3"));
dlclose(handle);
}
Msp::Debug::Backtrace &get_thread_backtrace()
{
-#if __cplusplus>=201103L
static thread_local Msp::Debug::Backtrace backtrace;
-#elif defined(__GNUC__)
- static __thread Msp::Debug::Backtrace backtrace;
-#else
- static Msp::Debug::Backtrace backtrace;
-#endif
return backtrace;
}