** create a new collectable object (with given type and size) and link ** it to 'allgc' list. */
| 206 | ** it to 'allgc' list. |
| 207 | */ |
| 208 | GCObject *luaC_newobj (lua_State *L, int tt, size_t sz) { |
| 209 | global_State *g = G(L); |
| 210 | GCObject *o = cast(GCObject *, luaM_newobject(L, novariant(tt), sz)); |
| 211 | o->marked = luaC_white(g); |
| 212 | o->tt = tt; |
| 213 | o->next = g->allgc; |
| 214 | g->allgc = o; |
| 215 | return o; |
| 216 | } |
| 217 | |
| 218 | /* }====================================================== */ |
| 219 |
no test coverage detected