MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / set_ref

Function set_ref

Dependencies/sol/include/sol/stack.hpp:220–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218
219 template <typename T>
220 int set_ref(lua_State* L, T&& arg, int tableindex = -2) {
221 int push_count = push(L, std::forward<T>(arg));
222 SOL_ASSERT(push_count == 1);
223 return luaL_ref(L, tableindex);
224 }
225
226 template <bool check_args = detail::default_safe_function_calls, typename R, typename... Args, typename Fx, typename... FxArgs>
227 inline decltype(auto) call(types<R> tr, types<Args...> ta, lua_State* L, int start, Fx&& fx, FxArgs&&... args) {

Callers

nothing calls this directly

Calls 2

pushFunction · 0.85
luaL_refFunction · 0.85

Tested by

no test coverage detected