MCPcopy Create free account
hub / github.com/DFHack/dfhack / sweeptolive

Function sweeptolive

depends/lua/src/lgc.c:758–764  ·  view source on GitHub ↗

** sweep a list until a live object (or end of list) */

Source from the content-addressed store, hash-verified

756** sweep a list until a live object (or end of list)
757*/
758static GCObject **sweeptolive (lua_State *L, GCObject **p) {
759 GCObject **old = p;
760 do {
761 p = sweeplist(L, p, 1);
762 } while (p == old);
763 return p;
764}
765
766/* }====================================================== */
767

Callers 1

luaC_checkfinalizerFunction · 0.85

Calls 1

sweeplistFunction · 0.85

Tested by

no test coverage detected