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

Function ArraySet

lib/base/array-script.cpp:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21static void ArraySet(int index, const Value& value)
22{
23 ScriptFrame *vframe = ScriptFrame::GetCurrentFrame();
24 Array::Ptr self = static_cast<Array::Ptr>(vframe->Self);
25 REQUIRE_NOT_NULL(self);
26 self->Set(index, value);
27}
28
29static Value ArrayGet(int index)
30{

Callers

nothing calls this directly

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected