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

Method call

extlibs/sol3/include/sol/sol.hpp:25409–25417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25407
25408 template <typename... Ret, typename... Args>
25409 decltype(auto) call(Args&&... args) {
25410 // some users screw up coroutine.create
25411 // and try to use it with sol::coroutine without ever calling the first resume in Lua
25412 // this makes the stack incompatible with other kinds of stacks: protect against this
25413 // make sure coroutines don't screw us over
25414 base_t::push();
25415 int pushcount = stack::multi_push_reference(lua_state(), std::forward<Args>(args)...);
25416 return invoke(types<Ret...>(), std::make_index_sequence<sizeof...(Ret)>(), pushcount);
25417 }
25418 };
25419} // namespace sol
25420

Callers

nothing calls this directly

Calls 3

pushFunction · 0.85
multi_push_referenceFunction · 0.85
invokeFunction · 0.85

Tested by

no test coverage detected