MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / traversearray

Function traversearray

third-party/lua-5.5.0/src/lgc.c:514–526  ·  view source on GitHub ↗

** Traverse the array part of a table. */

Source from the content-addressed store, hash-verified

512** Traverse the array part of a table.
513*/
514static int traversearray (global_State *g, Table *h) {
515 unsigned asize = h->asize;
516 int marked = 0; /* true if some object is marked in this traversal */
517 unsigned i;
518 for (i = 0; i < asize; i++) {
519 GCObject *o = gcvalarr(h, i);
520 if (o != NULL && iswhite(o)) {
521 marked = 1;
522 reallymarkobject(g, o);
523 }
524 }
525 return marked;
526}
527
528
529/*

Callers 2

traverseephemeronFunction · 0.85
traversestrongtableFunction · 0.85

Calls 1

reallymarkobjectFunction · 0.70

Tested by

no test coverage detected