mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-16 10:05:39 +02:00
Update to match the latest devel (v3) branch.
This commit is contained in:
@@ -125,9 +125,11 @@ namespace Catch {
|
||||
previousTopLevelExceptionFilter = SetUnhandledExceptionFilter(topLevelExceptionFilter);
|
||||
}
|
||||
|
||||
void FatalConditionHandler::disengage_platform() {
|
||||
if (SetUnhandledExceptionFilter(reinterpret_cast<LPTOP_LEVEL_EXCEPTION_FILTER>(previousTopLevelExceptionFilter)) != topLevelExceptionFilter) {
|
||||
CATCH_RUNTIME_ERROR("Could not restore previous top level exception filter");
|
||||
void FatalConditionHandler::disengage_platform() noexcept {
|
||||
if (SetUnhandledExceptionFilter(previousTopLevelExceptionFilter) != topLevelExceptionFilter) {
|
||||
Catch::cerr()
|
||||
<< "Unexpected SEH unhandled exception filter on disengage."
|
||||
<< " The filter was restored, but might be rolled back unexpectedly.";
|
||||
}
|
||||
previousTopLevelExceptionFilter = nullptr;
|
||||
}
|
||||
|
Reference in New Issue
Block a user