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

Method stateless_reference

Libs/sol/sol.hpp:9191–9197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9189 }
9190
9191 stateless_reference(lua_State* L, detail::global_tag) noexcept {
9192#if SOL_IS_ON(SOL_SAFE_STACK_CHECK_I_)
9193 luaL_checkstack(L, 1, "not enough Lua stack space to push this reference value");
9194#endif // make sure stack doesn't overflow
9195 lua_pushglobaltable(L);
9196 ref = luaL_ref(L, LUA_REGISTRYINDEX);
9197 }
9198
9199 stateless_reference(int raw_ref_index) noexcept : ref(raw_ref_index) {
9200 }

Callers

nothing calls this directly

Calls 7

luaL_checkstackFunction · 0.85
xmovableFunction · 0.85
lua_stateMethod · 0.45
stack_indexMethod · 0.45
copyMethod · 0.45
get_typeMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected