MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaH_new

Function luaH_new

3rd/lua-5.4.3/src/ltable.c:615–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

613
614
615Table *luaH_new (lua_State *L) {
616 GCObject *o = luaC_newobj(L, LUA_VTABLE, sizeof(Table));
617 Table *t = gco2t(o);
618 t->metatable = NULL;
619 t->flags = cast_byte(maskflags); /* table has no metamethod fields */
620 t->array = NULL;
621 t->alimit = 0;
622 setnodevector(L, t, 0);
623 return t;
624}
625
626
627void luaH_free (lua_State *L, Table *t) {

Callers 5

luaV_executeFunction · 0.85
init_registryFunction · 0.85
luaY_parserFunction · 0.85
collectvalidlinesFunction · 0.85
lua_createtableFunction · 0.85

Calls 2

luaC_newobjFunction · 0.85
setnodevectorFunction · 0.85

Tested by

no test coverage detected