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

Method invoke

include/sol/unsafe_function.hpp:47–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46 template <std::size_t... I, typename... Ret>
47 auto invoke(types<Ret...>, std::index_sequence<I...>, std::ptrdiff_t n) const {
48 luacall(n, lua_size<std::tuple<Ret...>>::value);
49 return stack::pop<std::tuple<Ret...>>(lua_state());
50 }
51
52 template <std::size_t I, typename Ret, meta::enable<meta::neg<std::is_void<Ret>>> = meta::enabler>
53 Ret invoke(types<Ret>, std::index_sequence<I>, std::ptrdiff_t n) const {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected