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

Function traverseCclosure

third-party/lua-5.5.0/src/lgc.c:661–666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

659
660
661static l_mem traverseCclosure (global_State *g, CClosure *cl) {
662 int i;
663 for (i = 0; i < cl->nupvalues; i++) /* mark its upvalues */
664 markvalue(g, &cl->upvalue[i]);
665 return 1 + cl->nupvalues;
666}
667
668/*
669** Traverse a Lua closure, marking its prototype and its upvalues.

Callers 1

propagatemarkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected