MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / luaC_newobj

Function luaC_newobj

extlibs/lua/src/lgc.c:240–248  ·  view source on GitHub ↗

** create a new collectable object (with given type and size) and link ** it to 'allgc' list. */

Source from the content-addressed store, hash-verified

238** it to 'allgc' list.
239*/
240GCObject *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

Callers 8

luaH_newFunction · 0.85
luaF_newCclosureFunction · 0.85
luaF_newLclosureFunction · 0.85
luaF_initupvalsFunction · 0.85
newupvalFunction · 0.85
luaF_newprotoFunction · 0.85
createstrobjFunction · 0.85
luaS_newudataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected