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

Function NewTable

src/Chain/libraries/glua/glua_decompile.cpp:1093–1104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1091}
1092
1093DecTable* NewTable(int r, int b, int c, int pc) {
1094 auto self = new DecTable();
1095 self->super.prev = nullptr;
1096 self->super.next = nullptr;
1097 InitList(&(self->array));
1098 InitList(&(self->keyed));
1099 self->reg = r;
1100 self->arraySize = luaO_fb2int(b);
1101 self->keyedSize = luaO_fb2int(c);
1102 self->pc = pc;
1103 return self;
1104}
1105
1106void StartTable(Function* F, int r, int b, int c, int pc) {
1107 auto tbl = NewTable(r, b, c, pc);

Callers 1

StartTableFunction · 0.85

Calls 2

InitListFunction · 0.85
luaO_fb2intFunction · 0.85

Tested by

no test coverage detected