MCPcopy Create free account
hub / github.com/Profactor/cv-plot / FatalConditionHandler

Method FatalConditionHandler

CvPlot/ext/catch2/inc/catch.hpp:10675–10685  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10673 }
10674
10675 FatalConditionHandler::FatalConditionHandler() {
10676 isSet = true;
10677 // 32k seems enough for Catch to handle stack overflow,
10678 // but the value was found experimentally, so there is no strong guarantee
10679 guaranteeSize = 32 * 1024;
10680 exceptionHandlerHandle = nullptr;
10681 // Register as first handler in current chain
10682 exceptionHandlerHandle = AddVectoredExceptionHandler(1, handleVectoredException);
10683 // Pass in guarantee size to be filled
10684 SetThreadStackGuarantee(&guaranteeSize);
10685 }
10686
10687 void FatalConditionHandler::reset() {
10688 if (isSet) {

Callers

nothing calls this directly

Calls 1

sigactionClass · 0.70

Tested by

no test coverage detected