MCPcopy Create free account
hub / github.com/BigPig0/RelayLive / luaL_unref

Function luaL_unref

ThirdParty/lua/lua/lauxlib.c:554–562  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

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