impr: Unionize exception and assertion handling

This commit is contained in:
WerWolv
2025-12-15 09:52:13 +01:00
parent 49bbe7dc77
commit cfac7ff0ba
10 changed files with 84 additions and 37 deletions

View File

@@ -6,7 +6,12 @@
namespace hex::trace {
using AssertionHandler = void(*)(const char* file, int line, const char *function, const char* exprString);
std::optional<StackTraceResult> getLastExceptionStackTrace();
void setAssertionHandler(AssertionHandler handler);
void enableExceptionCaptureForCurrentThread();
void disableExceptionCaptureForCurrentThread();
}