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

Function luaL_unref

third-party/lua-5.2.4/src/lauxlib.c:543–551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541
542
543LUALIB_API void luaL_unref (lua_State *L, int t, int ref) {
544 if (ref >= 0) {
545 t = lua_absindex(L, t);
546 lua_rawgeti(L, t, freelist);
547 lua_rawseti(L, t, ref); /* t[ref] = t[freelist] */
548 lua_pushinteger(L, ref);
549 lua_rawseti(L, t, freelist); /* t[freelist] = ref */
550 }
551}
552
553/* }====================================================== */
554

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected