MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / FatalConditionHandler

Method FatalConditionHandler

extlibs/catch/include/catch/catch.hpp:10411–10421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10409 }
10410
10411 FatalConditionHandler::FatalConditionHandler() {
10412 isSet = true;
10413 // 32k seems enough for Catch to handle stack overflow,
10414 // but the value was found experimentally, so there is no strong guarantee
10415 guaranteeSize = 32 * 1024;
10416 exceptionHandlerHandle = nullptr;
10417 // Register as first handler in current chain
10418 exceptionHandlerHandle = AddVectoredExceptionHandler(1, handleVectoredException);
10419 // Pass in guarantee size to be filled
10420 SetThreadStackGuarantee(&guaranteeSize);
10421 }
10422
10423 void FatalConditionHandler::reset() {
10424 if (isSet) {

Callers

nothing calls this directly

Calls 1

sigactionClass · 0.70

Tested by

no test coverage detected