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

Function luaC_fix

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

Source from the content-addressed store, hash-verified

280
281
282void luaC_fix (lua_State *L, GCObject *o) {
283 global_State *g = G(L);
284 lua_assert(g->allgc == o); /* object must be 1st in 'allgc' list! */
285 set2gray(o); /* they will be gray forever */
286 setage(o, G_OLD); /* and old forever */
287 g->allgc = o->next; /* remove object from 'allgc' list */
288 o->next = g->fixedgc; /* link it to 'fixedgc' list */
289 g->fixedgc = o;
290}
291
292
293/*

Callers 3

luaX_initFunction · 0.70
luaT_initFunction · 0.70
luaS_initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected