MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / invokePath

Method invokePath

source/core/StarLua.hpp:1845–1850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1843
1844template <typename Ret, typename... Args>
1845Ret LuaContext::invokePath(String const& key, Args const&... args) const {
1846 auto p = getPath(key);
1847 if (auto f = p.ptr<LuaFunction>())
1848 return f->invoke<Ret>(args...);
1849 throw LuaException::format("invokePath called on path '{}' which is not function type", key);
1850}
1851
1852template <typename T>
1853LuaValue LuaContext::luaFrom(T&& t) {

Callers 3

initMethod · 0.80
uninitMethod · 0.80
TESTFunction · 0.80

Calls 1

formatFunction · 0.70

Tested by 1

TESTFunction · 0.64