MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / FatalConditionHandler

Method FatalConditionHandler

Bcore/src/main/cpp/Dobby/tests/catch.hpp:7175–7185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7173}
7174
7175FatalConditionHandler::FatalConditionHandler() {
7176 isSet = true;
7177 // 32k seems enough for Catch to handle stack overflow,
7178 // but the value was found experimentally, so there is no strong guarantee
7179 guaranteeSize = 32 * 1024;
7180 exceptionHandlerHandle = nullptr;
7181 // Register as first handler in current chain
7182 exceptionHandlerHandle = AddVectoredExceptionHandler(1, handleVectoredException);
7183 // Pass in guarantee size to be filled
7184 SetThreadStackGuarantee(&guaranteeSize);
7185}
7186
7187void FatalConditionHandler::reset() {
7188 if (isSet) {

Callers

nothing calls this directly

Calls 1

sigactionClass · 0.70

Tested by

no test coverage detected