MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / call

Method call

src/script/script_object.h:147–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145
146 template <typename RetType = Value, typename ... Args>
147 RetType call(const std::string& name, Args ... args) {
148 auto it = m_internal->functions.find(name);
149 if (it == m_internal->functions.end())
150 return Value{};
151 auto& func = it->second;
152 func.arguments = {args...};
153 func();
154 return func.result;
155 }
156
157 protected:
158 void makeGlobal(const std::string& name) {

Callers 3

rebuildMethod · 0.45
ai.jsFile · 0.45
processFunction · 0.45

Calls 1

endMethod · 0.45

Tested by

no test coverage detected