impr: Disable exception wrapping as it causes a lot of slowdowns

(cherry picked from commit 8fc2d6b225)
This commit is contained in:
WerWolv
2026-01-03 20:41:17 +01:00
parent 3b602eaaee
commit 25e7ce5750
2 changed files with 0 additions and 19 deletions

View File

@@ -30,22 +30,6 @@ namespace hex::trace {
}
#if defined(HEX_WRAP_CXA_THROW)
extern "C" {
[[noreturn]] void __real___cxa_throw(void* thrownException, std::type_info* type, void (*destructor)(void*));
[[noreturn]] void __wrap___cxa_throw(void* thrownException, std::type_info* type, void (*destructor)(void*)) {
if (hex::trace::s_threadExceptionCaptureEnabled)
hex::trace::s_lastExceptionStackTrace = hex::trace::getStackTrace();
__real___cxa_throw(thrownException, type, destructor);
}
}
#endif
#if defined(HEX_WRAP_GLIBCXX_ASSERT_FAIL)
extern "C" {