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

Function luaH_new

src/Chain/libraries/glua/ltable.cpp:538–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536
537
538Table *luaH_new(lua_State *L) {
539 GCObject *o = luaC_newobj(L, LUA_TTABLE, sizeof(Table));
540 Table *t = gco2t(o);
541 t->metatable = nullptr;
542 t->flags = cast_byte(~0);
543 t->array = nullptr;
544 t->sizearray = 0;
545 setnodevector(L, t, 0);
546 return t;
547}
548
549
550void luaH_free(lua_State *L, Table *t) {

Callers 5

collectvalidlinesFunction · 0.85
vmcaseFunction · 0.85
init_registryFunction · 0.85
luaY_parserFunction · 0.85
lua_createtableFunction · 0.85

Calls 2

luaC_newobjFunction · 0.85
setnodevectorFunction · 0.85

Tested by

no test coverage detected