MCPcopy Create free account
hub / github.com/Icinga/icinga2 / Assert

Method Assert

lib/base/scriptutils.cpp:506–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504}
505
506void ScriptUtils::Assert(const Value& arg)
507{
508 if (!arg.ToBool())
509 BOOST_THROW_EXCEPTION(std::runtime_error("Assertion failed"));
510}
511
512String ScriptUtils::MsiGetComponentPathShim([[maybe_unused]] const String& component)
513{

Callers

nothing calls this directly

Calls 1

ToBoolMethod · 0.45

Tested by

no test coverage detected