MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / checkLclosure

Function checkLclosure

Dependencies/lua/src/ltests.c:414–426  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412
413
414static void checkLclosure (global_State *g, LClosure *cl) {
415 GCObject *clgc = obj2gco(cl);
416 int i;
417 checkobjrefN(g, clgc, cl->p);
418 for (i=0; i<cl->nupvalues; i++) {
419 UpVal *uv = cl->upvals[i];
420 if (uv) {
421 checkobjrefN(g, clgc, uv);
422 if (!upisopen(uv))
423 checkvalref(g, obj2gco(uv), uv->v.p);
424 }
425 }
426}
427
428
429static int lua_checkpc (CallInfo *ci) {

Callers 1

checkrefsFunction · 0.85

Calls 1

checkvalrefFunction · 0.85

Tested by

no test coverage detected