MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / traverseCclosure

Function traverseCclosure

lib/lua/src/lgc.c:595–600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593
594
595static int traverseCclosure (global_State *g, CClosure *cl) {
596 int i;
597 for (i = 0; i < cl->nupvalues; i++) /* mark its upvalues */
598 markvalue(g, &cl->upvalue[i]);
599 return 1 + cl->nupvalues;
600}
601
602/*
603** 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