MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaL_unref

Function luaL_unref

3rd/lua-5.4.3/src/lauxlib.c:688–697  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected