MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaF_newCclosure

Function luaF_newCclosure

src/Chain/libraries/glua/lfunc.cpp:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24
25CClosure *luaF_newCclosure(lua_State *L, int n) {
26 GCObject *o = luaC_newobj(L, LUA_TCCL, sizeCclosure(n));
27 CClosure *c = gco2ccl(o);
28 c->nupvalues = cast_byte(n);
29 return c;
30}
31
32
33LClosure *luaF_newLclosure(lua_State *L, int n) {

Callers 1

lua_pushcclosureFunction · 0.85

Calls 1

luaC_newobjFunction · 0.85

Tested by

no test coverage detected