MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaL_unref

Function luaL_unref

lib/lua/src/lauxlib.c:692–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690
691
692LUALIB_API void luaL_unref (lua_State *L, int t, int ref) {
693 if (ref >= 0) {
694 t = lua_absindex(L, t);
695 lua_rawgeti(L, t, freelist);
696 lua_assert(lua_isinteger(L, -1));
697 lua_rawseti(L, t, ref); /* t[ref] = t[freelist] */
698 lua_pushinteger(L, ref);
699 lua_rawseti(L, t, freelist); /* t[freelist] = ref */
700 }
701}
702
703/* }====================================================== */
704

Callers 2

Calls 5

lua_absindexFunction · 0.85
lua_rawgetiFunction · 0.85
lua_isintegerFunction · 0.85
lua_rawsetiFunction · 0.85
lua_pushintegerFunction · 0.85

Tested by

no test coverage detected