** create a new collectable object (with given type and size) and link ** it to 'allgc' list. */
| 238 | ** it to 'allgc' list. |
| 239 | */ |
| 240 | GCObject *luaC_newobj (lua_State *L, int tt, size_t sz) { |
| 241 | global_State *g = G(L); |
| 242 | GCObject *o = cast(GCObject *, luaM_newobject(L, novariant(tt), sz)); |
| 243 | o->marked = luaC_white(g); |
| 244 | o->tt = tt; |
| 245 | o->next = g->allgc; |
| 246 | g->allgc = o; |
| 247 | return o; |
| 248 | } |
| 249 | |
| 250 | /* }====================================================== */ |
| 251 |
no outgoing calls
no test coverage detected