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

Method FatalConditionHandler

unittests/catch.hpp:7345–7355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7343 }
7344
7345 FatalConditionHandler::FatalConditionHandler() {
7346 isSet = true;
7347 // 32k seems enough for Catch to handle stack overflow,
7348 // but the value was found experimentally, so there is no strong guarantee
7349 guaranteeSize = 32 * 1024;
7350 exceptionHandlerHandle = nullptr;
7351 // Register as first handler in current chain
7352 exceptionHandlerHandle = AddVectoredExceptionHandler(1, handleVectoredException);
7353 // Pass in guarantee size to be filled
7354 SetThreadStackGuarantee(&guaranteeSize);
7355 }
7356
7357 void FatalConditionHandler::reset() {
7358 if (isSet) {

Callers

nothing calls this directly

Calls 1

sigactionClass · 0.70

Tested by

no test coverage detected