MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaC_fix

Function luaC_fix

lib/lua/src/lgc.c:243–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241
242
243void luaC_fix (lua_State *L, GCObject *o) {
244 global_State *g = G(L);
245 lua_assert(g->allgc == o); /* object must be 1st in 'allgc' list! */
246 set2gray(o); /* they will be gray forever */
247 setage(o, G_OLD); /* and old forever */
248 g->allgc = o->next; /* remove object from 'allgc' list */
249 o->next = g->fixedgc; /* link it to 'fixedgc' list */
250 g->fixedgc = o;
251}
252
253
254/*

Callers 3

luaX_initFunction · 0.85
luaT_initFunction · 0.85
luaS_initFunction · 0.85

Calls 1

GFunction · 0.50

Tested by

no test coverage detected