MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaL_unref

Function luaL_unref

third-party/lua-5.5.0/src/lauxlib.c:716–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

714
715
716LUALIB_API void luaL_unref (lua_State *L, int t, int ref) {
717 if (ref >= 0) {
718 t = lua_absindex(L, t);
719 lua_rawgeti(L, t, 1);
720 lua_assert(lua_isinteger(L, -1));
721 lua_rawseti(L, t, ref); /* t[ref] = t[1] */
722 lua_pushinteger(L, ref);
723 lua_rawseti(L, t, 1); /* t[1] = ref */
724 }
725}
726
727/* }====================================================== */
728

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected