MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / traversestack

Function traversestack

Source/Misc/lua/src/lua.c:6258–6272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6256
6257
6258static void traversestack (global_State *g, lua_State *l) {
6259StkId o, lim;
6260CallInfo *ci;
6261markvalue(g, gt(l));
6262lim = l->top;
6263for (ci = l->base_ci; ci <= l->ci; ci++) {
6264lua_assert(ci->top <= l->stack_last);
6265if (lim < ci->top) lim = ci->top;
6266}
6267for (o = l->stack; o < l->top; o++)
6268markvalue(g, o);
6269for (; o <= lim; o++)
6270setnilvalue(o);
6271checkstacksizes(l, lim);
6272}
6273
6274
6275/*

Callers 1

propagatemarkFunction · 0.85

Calls 1

checkstacksizesFunction · 0.85

Tested by

no test coverage detected