MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / luaL_unref

Function luaL_unref

extlibs/lua/src/lauxlib.c:665–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

663
664
665LUALIB_API void luaL_unref (lua_State *L, int t, int ref) {
666 if (ref >= 0) {
667 t = lua_absindex(L, t);
668 lua_rawgeti(L, t, freelist);
669 lua_rawseti(L, t, ref); /* t[ref] = t[freelist] */
670 lua_pushinteger(L, ref);
671 lua_rawseti(L, t, freelist); /* t[freelist] = ref */
672 }
673}
674
675/* }====================================================== */
676

Callers 1

derefMethod · 0.85

Calls 4

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

Tested by

no test coverage detected