MCPcopy Create free account
hub / github.com/F-Stack/f-stack / luaL_unref

Function luaL_unref

app/redis-6.2.6/deps/lua/src/lauxlib.c:504–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502
503
504LUALIB_API void luaL_unref (lua_State *L, int t, int ref) {
505 if (ref >= 0) {
506 t = abs_index(L, t);
507 lua_rawgeti(L, t, FREELIST_REF);
508 lua_rawseti(L, t, ref); /* t[ref] = t[FREELIST_REF] */
509 lua_pushinteger(L, ref);
510 lua_rawseti(L, t, FREELIST_REF); /* t[FREELIST_REF] = ref */
511 }
512}
513
514
515

Callers

nothing calls this directly

Calls 3

lua_rawgetiFunction · 0.70
lua_rawsetiFunction · 0.70
lua_pushintegerFunction · 0.70

Tested by

no test coverage detected