Files
imhex/lib/trace/include/hex/trace/exceptions.hpp
2025-12-15 10:11:09 +01:00

17 lines
437 B
C++

#pragma once
#include <hex/trace/stacktrace.hpp>
#include <optional>
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();
}