MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / ~DebugLevelGuard

Method ~DebugLevelGuard

src/Tests/CoolProp-Tests.cpp:5153–5155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5151 int saved;
5152 DebugLevelGuard() : saved(CoolProp::get_debug_level()) {}
5153 ~DebugLevelGuard() {
5154 CoolProp::set_debug_level(saved);
5155 }
5156 } guard;
5157 CoolProp::set_debug_level(1);
5158 CHECK_THROWS_AS(CoolProp::add_fluids_as_JSON("PCSAFT", "this is not json"), CoolProp::ValueError);

Callers

nothing calls this directly

Calls 1

set_debug_levelFunction · 0.50

Tested by

no test coverage detected