** create a new collectable object (with given type and size) and link ** it to 'allgc' list. */
| 256 | ** it to 'allgc' list. |
| 257 | */ |
| 258 | GCObject *luaC_newobj (lua_State *L, int tt, size_t sz) { |
| 259 | global_State *g = G(L); |
| 260 | GCObject *o = cast(GCObject *, luaM_newobject(L, novariant(tt), sz)); |
| 261 | o->marked = luaC_white(g); |
| 262 | o->tt = tt; |
| 263 | o->next = g->allgc; |
| 264 | g->allgc = o; |
| 265 | return o; |
| 266 | } |
| 267 | |
| 268 | /* }====================================================== */ |
| 269 |
no outgoing calls
no test coverage detected