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

Method handleSignal

extlibs/catch/include/catch/catch.hpp:10464–10475  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10462 };
10463
10464 void FatalConditionHandler::handleSignal( int sig ) {
10465 char const * name = "<unknown signal>";
10466 for (auto const& def : signalDefs) {
10467 if (sig == def.id) {
10468 name = def.name;
10469 break;
10470 }
10471 }
10472 reset();
10473 reportFatal(name);
10474 raise( sig );
10475 }
10476
10477 FatalConditionHandler::FatalConditionHandler() {
10478 isSet = true;

Callers

nothing calls this directly

Calls 3

resetFunction · 0.85
reportFatalFunction · 0.85
raiseClass · 0.50

Tested by

no test coverage detected