MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaL_unref

Function luaL_unref

third-party/lua-5.4.6/src/lauxlib.c:692–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690
691
692LUALIB_API void luaL_unref (lua_State *L, int t, int ref) {
693 if (ref >= 0) {
694 t = lua_absindex(L, t);
695 lua_rawgeti(L, t, freelist);
696 lua_assert(lua_isinteger(L, -1));
697 lua_rawseti(L, t, ref); /* t[ref] = t[freelist] */
698 lua_pushinteger(L, ref);
699 lua_rawseti(L, t, freelist); /* t[freelist] = ref */
700 }
701}
702
703/* }====================================================== */
704

Callers

nothing calls this directly

Calls 5

lua_absindexFunction · 0.70
lua_rawgetiFunction · 0.70
lua_isintegerFunction · 0.70
lua_rawsetiFunction · 0.70
lua_pushintegerFunction · 0.70

Tested by

no test coverage detected