MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / luaL_unref

Function luaL_unref

lua/lauxlib.c:552–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550
551
552LUALIB_API void luaL_unref (lua_State *L, int t, int ref) {
553 if (ref >= 0) {
554 t = abs_index(L, t);
555 lua_rawgeti(L, t, FREELIST_REF);
556 lua_rawseti(L, t, ref); /* t[ref] = t[FREELIST_REF] */
557 lua_pushinteger(L, ref);
558 lua_rawseti(L, t, FREELIST_REF); /* t[FREELIST_REF] = ref */
559 }
560}
561
562
563

Callers

nothing calls this directly

Calls 3

lua_rawgetiFunction · 0.85
lua_rawsetiFunction · 0.85
lua_pushintegerFunction · 0.85

Tested by

no test coverage detected