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

Method stateless_reference

extlibs/sol3/include/sol/sol.hpp:8623–8629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8621 }
8622
8623 stateless_reference(lua_State* L, detail::global_tag) noexcept {
8624#if defined(SOL_SAFE_STACK_CHECK) && SOL_SAFE_STACK_CHECK
8625 luaL_checkstack(L, 1, "not enough Lua stack space to push this reference value");
8626#endif // make sure stack doesn't overflow
8627 lua_pushglobaltable(L);
8628 ref = luaL_ref(L, LUA_REGISTRYINDEX);
8629 }
8630
8631 stateless_reference(int raw_ref_index) noexcept : ref(raw_ref_index) {
8632 }

Callers

nothing calls this directly

Calls 10

luaL_refFunction · 0.85
xmovableFunction · 0.85
lua_pushvalueFunction · 0.85
lua_rawgetiFunction · 0.85
luaL_checkstackFunction · 0.70
lua_stateMethod · 0.45
stack_indexMethod · 0.45
copyMethod · 0.45
get_typeMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected