MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaL_unref

Function luaL_unref

Source/Misc/lua/src/lua.c:10716–10724  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10714
10715
10716LUALIB_API void luaL_unref (lua_State *L, int t, int ref) {
10717if (ref >= 0) {
10718t = abs_index(L, t);
10719lua_rawgeti(L, t, FREELIST_REF);
10720lua_rawseti(L, t, ref); /* t[ref] = t[FREELIST_REF] */
10721lua_pushinteger(L, ref);
10722lua_rawseti(L, t, FREELIST_REF); /* t[FREELIST_REF] = ref */
10723}
10724}
10725
10726
10727

Callers 3

~implMethod · 0.85
~handleMethod · 0.85
resetMethod · 0.85

Calls 3

lua_rawgetiFunction · 0.85
lua_rawsetiFunction · 0.85
lua_pushintegerFunction · 0.85

Tested by

no test coverage detected