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

Method stateless_reference

include/sol/reference.hpp:291–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289 }
290
291 stateless_reference(lua_State* L_, global_tag_t) noexcept {
292#if SOL_IS_ON(SOL_SAFE_STACK_CHECK)
293 luaL_checkstack(L_, 1, "not enough Lua stack space to push this reference value");
294#endif // make sure stack doesn't overflow
295 lua_pushglobaltable(L_);
296 ref = luaL_ref(L_, LUA_REGISTRYINDEX);
297 }
298
299 stateless_reference(int raw_ref_index) noexcept : ref(raw_ref_index) {
300 }

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected