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

Function luaC_upvdeccount

third-party/lua-5.3.5/src/lgc.c:678–683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676
677
678void luaC_upvdeccount (lua_State *L, UpVal *uv) {
679 lua_assert(uv->refcount > 0);
680 uv->refcount--;
681 if (uv->refcount == 0 && !upisopen(uv))
682 luaM_free(L, uv);
683}
684
685
686static void freeLclosure (lua_State *L, LClosure *cl) {

Callers 2

lua_upvaluejoinFunction · 0.85
freeLclosureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected