| 192 | |
| 193 | |
| 194 | void 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 | /* |