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

Function luaH_new

third-party/lua-5.5.0/src/ltable.c:799–808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

797
798
799Table *luaH_new (lua_State *L) {
800 GCObject *o = luaC_newobj(L, LUA_VTABLE, sizeof(Table));
801 Table *t = gco2t(o);
802 t->metatable = NULL;
803 t->flags = maskflags; /* table has no metamethod fields */
804 t->array = NULL;
805 t->asize = 0;
806 setnodevector(L, t, 0);
807 return t;
808}
809
810
811lu_mem luaH_size (Table *t) {

Callers 9

luaV_executeFunction · 0.70
init_registryFunction · 0.70
createvarargtabFunction · 0.70
luaU_undumpFunction · 0.70
open_funcFunction · 0.70
luaY_parserFunction · 0.70
luaU_dumpFunction · 0.70
collectvalidlinesFunction · 0.70
lua_createtableFunction · 0.70

Calls 2

luaC_newobjFunction · 0.70
setnodevectorFunction · 0.70

Tested by

no test coverage detected