MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / luaL_unref

Function luaL_unref

Dependencies/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

derefMethod · 0.85
unrefFunction · 0.85

Calls 5

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

Tested by 1

unrefFunction · 0.68