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

Function AddToTable

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

Source from the content-addressed store, hash-verified

1111}
1112
1113void AddToTable(Function* F, DecTable* tbl, std::string value, std::string key) {
1114 DecTableItem* item;
1115 List* list;
1116 if (key.length()<1) {
1117 list = &(tbl->array);
1118 item = NewTableItem(value, list->size, "");
1119 }
1120 else {
1121 list = &(tbl->keyed);
1122 item = NewTableItem(value, 0, key);
1123 }
1124 AddToList(list, (ListItem*)item);
1125}
1126
1127void SetList(GluaDecompileContextP ctx, Function* F, int a, int b, int c) {
1128 int i;

Callers 2

SetListFunction · 0.85
SetTableFunction · 0.85

Calls 3

NewTableItemFunction · 0.85
AddToListFunction · 0.85
lengthMethod · 0.45

Tested by

no test coverage detected