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

Function set_ref

extlibs/sol3/include/sol/sol.hpp:14463–14466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14461
14462 template <typename T>
14463 int set_ref(lua_State* L, T&& arg, int tableindex = -2) {
14464 push(L, std::forward<T>(arg));
14465 return luaL_ref(L, tableindex);
14466 }
14467
14468 template <bool check_args = detail::default_safe_function_calls, typename R, typename... Args, typename Fx, typename... FxArgs>
14469 inline decltype(auto) call(types<R> tr, types<Args...> ta, lua_State* L, int start, Fx&& fx, FxArgs&&... args) {

Callers 1

basic_table_coreClass · 0.85

Calls 2

pushFunction · 0.85
luaL_refFunction · 0.85

Tested by

no test coverage detected