| 1032 | } |
| 1033 | |
| 1034 | void 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 | |
| 1046 | std::string PrintTable(GluaDecompileContextP ctx, Function* F, int r, int returnCopy) { |
| 1047 | std::string result; |
no test coverage detected