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

Function PrintTableItemKeyed

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

Source from the content-addressed store, hash-verified

1032}
1033
1034void PrintTableItemKeyed(GluaDecompileContextP ctx, Function* F, std::stringstream &str, DecTableItem* item) {
1035 const auto &value = item->value;
1036 if (value[0] == '{' && string_last_char(str.str()) != '\n') {
1037 str << "\n";
1038 }
1039 MakeIndex(ctx, F, str, item->key, TABLE);
1040 str << " = " << item->value;
1041 if (value[value.length() - 1] == '}') {
1042 str << "\n";
1043 }
1044}
1045
1046std::string PrintTable(GluaDecompileContextP ctx, Function* F, int r, int returnCopy) {
1047 std::string result;

Callers 1

PrintTableFunction · 0.85

Calls 4

string_last_charFunction · 0.85
MakeIndexFunction · 0.85
strMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected