MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / traverseCclosure

Function traverseCclosure

3rd/lua-5.4.3/src/lgc.c:587–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

585
586
587static int traverseCclosure (global_State *g, CClosure *cl) {
588 int i;
589 for (i = 0; i < cl->nupvalues; i++) /* mark its upvalues */
590 markvalue(g, &cl->upvalue[i]);
591 return 1 + cl->nupvalues;
592}
593
594/*
595** Traverse a Lua closure, marking its prototype and its upvalues.

Callers 1

propagatemarkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected