MCPcopy Create free account
hub / github.com/cirquit/trdrop / FatalConditionHandler

Method FatalConditionHandler

ext/catch.hpp:6304–6314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6302 }
6303
6304 FatalConditionHandler() {
6305 isSet = true;
6306 // 32k seems enough for Catch to handle stack overflow,
6307 // but the value was found experimentally, so there is no strong guarantee
6308 guaranteeSize = 32 * 1024;
6309 exceptionHandlerHandle = CATCH_NULL;
6310 // Register as first handler in current chain
6311 exceptionHandlerHandle = AddVectoredExceptionHandler(1, handleVectoredException);
6312 // Pass in guarantee size to be filled
6313 SetThreadStackGuarantee(&guaranteeSize);
6314 }
6315
6316 static void reset() {
6317 if (isSet) {

Callers

nothing calls this directly

Calls 1

sigactionClass · 0.70

Tested by

no test coverage detected