MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / traverseudata

Function traverseudata

extlibs/lua/src/lgc.c:505–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503
504
505static int traverseudata (global_State *g, Udata *u) {
506 int i;
507 markobjectN(g, u->metatable); /* mark its metatable */
508 for (i = 0; i < u->nuvalue; i++)
509 markvalue(g, &u->uv[i].uv);
510 if (g->gckind == KGC_GEN) {
511 linkgclist(u, g->grayagain); /* keep it in some gray list */
512 black2gray(u);
513 }
514 return 1 + u->nuvalue;
515}
516
517
518/*

Callers 1

propagatemarkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected