MCPcopy Create free account
hub / github.com/axmolengine/axmol / stateless_reference

Method stateless_reference

3rdparty/lua/sol/sol.hpp:10196–10202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10194 }
10195
10196 stateless_reference(lua_State* L_, global_tag_t) noexcept {
10197#if SOL_IS_ON(SOL_SAFE_STACK_CHECK)
10198 luaL_checkstack(L_, 1, "not enough Lua stack space to push this reference value");
10199#endif // make sure stack doesn't overflow
10200 lua_pushglobaltable(L_);
10201 ref = luaL_ref(L_, LUA_REGISTRYINDEX);
10202 }
10203
10204 stateless_reference(int raw_ref_index) noexcept : ref(raw_ref_index) {
10205 }

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
copy_refMethod · 0.45
get_typeMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected