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

Method IncreaseStackDepth

lib/base/scriptframe.cpp:130–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130void ScriptFrame::IncreaseStackDepth()
131{
132 if (Depth + 1 > 300)
133 BOOST_THROW_EXCEPTION(ScriptError("Stack overflow while evaluating expression: Recursion level too deep."));
134
135 Depth++;
136}
137
138void ScriptFrame::DecreaseStackDepth()
139{

Callers 1

EvaluateMethod · 0.80

Calls 1

ScriptErrorClass · 0.85

Tested by

no test coverage detected