MCPcopy Create free account
hub / github.com/ThePhD/sol2 / call

Method call

include/sol/table_proxy.hpp:216–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214
215 template <typename... Ret, typename... Args>
216 decltype(auto) call(Args&&... args) {
217 lua_State* L = this->lua_state();
218 push(L);
219 int idx = lua_gettop(L);
220 stack_aligned_function func(L, idx);
221 return func.call<Ret...>(std::forward<Args>(args)...);
222 }
223
224 template <typename... Args>
225 decltype(auto) operator()(Args&&... args) {

Callers

nothing calls this directly

Calls 2

lua_stateMethod · 0.95
pushFunction · 0.85

Tested by

no test coverage detected