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

Function luaF_newLclosure

extlibs/lua/src/lfunc.c:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33
34
35LClosure *luaF_newLclosure (lua_State *L, int nupvals) {
36 GCObject *o = luaC_newobj(L, LUA_VLCL, sizeLclosure(nupvals));
37 LClosure *c = gco2lcl(o);
38 c->p = NULL;
39 c->nupvalues = cast_byte(nupvals);
40 while (nupvals--) c->upvals[nupvals] = NULL;
41 return c;
42}
43
44
45/*

Callers 3

pushclosureFunction · 0.85
luaU_undumpFunction · 0.85
luaY_parserFunction · 0.85

Calls 1

luaC_newobjFunction · 0.85

Tested by

no test coverage detected