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

Function luaC_fix

depends/lua/src/lgc.c:194–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192
193
194void luaC_fix (lua_State *L, GCObject *o) {
195 global_State *g = G(L);
196 lua_assert(g->allgc == o); /* object must be 1st in 'allgc' list! */
197 white2gray(o); /* they will be gray forever */
198 g->allgc = o->next; /* remove object from 'allgc' list */
199 o->next = g->fixedgc; /* link it to 'fixedgc' list */
200 g->fixedgc = o;
201}
202
203
204/*

Callers 3

luaX_initFunction · 0.85
luaT_initFunction · 0.85
luaS_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected