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

Method Function

lib/base/function.cpp:13–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11REGISTER_TYPE_WITH_PROTOTYPE(Function, Function::GetPrototype());
12
13Function::Function(const String& name, Callback function, const std::vector<String>& args,
14 bool side_effect_free, bool deprecated)
15 : m_Callback(std::move(function))
16{
17 SetName(name, true);
18 SetSideEffectFree(side_effect_free, true);
19 SetDeprecated(deprecated, true);
20 SetArguments(Array::FromVector(args), true);
21}
22
23Value Function::Invoke(const std::vector<Value>& arguments)
24{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected