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

Function luaL_unref

freebsd/contrib/openzfs/module/lua/lauxlib.c:503–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected