MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaL_unref

Function luaL_unref

depends/lua/src/lauxlib.c:616–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614
615
616LUALIB_API void luaL_unref (lua_State *L, int t, int ref) {
617 if (ref >= 0) {
618 t = lua_absindex(L, t);
619 lua_rawgeti(L, t, freelist);
620 lua_rawseti(L, t, ref); /* t[ref] = t[freelist] */
621 lua_pushinteger(L, ref);
622 lua_rawseti(L, t, freelist); /* t[freelist] = ref */
623 }
624}
625
626/* }====================================================== */
627

Callers

nothing calls this directly

Calls 4

lua_absindexFunction · 0.85
lua_rawgetiFunction · 0.85
lua_rawsetiFunction · 0.85
lua_pushintegerFunction · 0.85

Tested by

no test coverage detected