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

Method call

include/sol/unsafe_function.hpp:160–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158
159 template <typename... Ret, typename... Args>
160 decltype(auto) call(Args&&... args) const {
161 if (!aligned) {
162 base_t::push();
163 }
164 int pushcount = stack::multi_push_reference(lua_state(), std::forward<Args>(args)...);
165 return invoke(types<Ret...>(), std::make_index_sequence<sizeof...(Ret)>(), static_cast<std::ptrdiff_t>(pushcount));
166 }
167 };
168} // namespace sol
169

Callers

nothing calls this directly

Calls 3

pushFunction · 0.85
multi_push_referenceFunction · 0.85
invokeFunction · 0.85

Tested by

no test coverage detected