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

Function luaH_new

third-party/lua-5.2.4/src/ltable.c:368–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366
367
368Table *luaH_new (lua_State *L) {
369 Table *t = &luaC_newobj(L, LUA_TTABLE, sizeof(Table), NULL, 0)->h;
370 t->metatable = NULL;
371 t->flags = cast_byte(~0);
372 t->array = NULL;
373 t->sizearray = 0;
374 setnodevector(L, t, 0);
375 return t;
376}
377
378
379void luaH_free (lua_State *L, Table *t) {

Callers 5

luaV_executeFunction · 0.70
init_registryFunction · 0.70
open_funcFunction · 0.70
collectvalidlinesFunction · 0.70
lua_createtableFunction · 0.70

Calls 2

luaC_newobjFunction · 0.70
setnodevectorFunction · 0.70

Tested by

no test coverage detected