windows exception handler
Some checks failed
demo.yaml / windows exception handler (push) Failing after 0s
Some checks failed
demo.yaml / windows exception handler (push) Failing after 0s
This commit is contained in:
parent
64945d95ef
commit
8d521340d4
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
#if defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_pc_windows_msvc) || defined(CRAFTER_BUILD_CONFIGURATION_TARGET_x86_64_w64_mingw32)
|
||||||
void terminateHandler() {
|
void terminateHandler() {
|
||||||
std::cout << "test" << std::endl;
|
|
||||||
try {
|
try {
|
||||||
if (auto e = std::current_exception()) {
|
if (auto e = std::current_exception()) {
|
||||||
std::rethrow_exception(e);
|
std::rethrow_exception(e);
|
||||||
}
|
}
|
||||||
} catch (const std::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();
|
std::abort();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue