MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / luaH_new

Function luaH_new

third-party/lua-5.3.5/src/ltable.c:421–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419
420
421Table *luaH_new (lua_State *L) {
422 GCObject *o = luaC_newobj(L, LUA_TTABLE, sizeof(Table));
423 Table *t = gco2t(o);
424 t->metatable = NULL;
425 t->flags = cast_byte(~0);
426 t->array = NULL;
427 t->sizearray = 0;
428 setnodevector(L, t, 0);
429 return t;
430}
431
432
433void luaH_free (lua_State *L, Table *t) {

Callers 5

luaV_executeFunction · 0.70
init_registryFunction · 0.70
luaY_parserFunction · 0.70
collectvalidlinesFunction · 0.70
lua_createtableFunction · 0.70

Calls 2

luaC_newobjFunction · 0.70
setnodevectorFunction · 0.70

Tested by

no test coverage detected