windows exception handler
Some checks failed
demo.yaml / windows exception handler (push) Failing after 0s

This commit is contained in:
Jorijn van der Graaf 2026-03-09 20:22:01 +01:00
commit 8d521340d4

View file

@ -27,13 +27,12 @@ namespace fs = std::filesystem;
#if defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_windows_msvc) || defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_w64_mingw32)
void terminateHandler() {
std::cout << "test" << std::endl;
try {
if (auto e = std::current_exception()) {
std::rethrow_exception(e);
}
} catch (const std::exception& e) {
MessageBoxA(nullptr, e.what(), "Unhandled Exception", MB_ICONERROR | MB_OK);
std::cout << e.what() << std::endl;
}
std::abort();
}