| 280 | |
| 281 | |
| 282 | void 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 | /* |