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

Function udata2finalize

depends/lua/src/lgc.c:788–798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

786
787
788static GCObject *udata2finalize (global_State *g) {
789 GCObject *o = g->tobefnz; /* get first element */
790 lua_assert(tofinalize(o));
791 g->tobefnz = o->next; /* remove it from 'tobefnz' list */
792 o->next = g->allgc; /* return it to 'allgc' list */
793 g->allgc = o;
794 resetbit(o->marked, FINALIZEDBIT); /* object is "normal" again */
795 if (issweepphase(g))
796 makewhite(g, o); /* "sweep" object */
797 return o;
798}
799
800
801static void dothecall (lua_State *L, void *ud) {

Callers 1

GCTMFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected