| 1155 | } |
| 1156 | |
| 1157 | void UnsetPending(GluaDecompileContextP ctx, Function* F, int r) { |
| 1158 | if (!IS_VARIABLE(r)) { |
| 1159 | if (!PENDING(r) && !CALL(r)) { |
| 1160 | if (ctx->guess_locals) { |
| 1161 | ctx->errortmp = std::string("Confused about usage of register: R") + std::to_string(r) + " in 'UnsetPending'"; |
| 1162 | SET_ERROR(ctx, F, ctx->errortmp); |
| 1163 | } |
| 1164 | else { |
| 1165 | ctx->errortmp = std::string("Confused about usage of register: R") + std::to_string(r) + " in 'UnsetPending'. Creating missing local"; |
| 1166 | SET_ERROR(ctx, F, ctx->errortmp); |
| 1167 | DeclareLocal(ctx, F, r, REGISTER(r)); |
| 1168 | } |
| 1169 | return; |
| 1170 | } |
| 1171 | PENDING(r) = 0; |
| 1172 | RemoveFromSet(F->tpend, r); |
| 1173 | } |
| 1174 | } |
| 1175 | |
| 1176 | int SetTable(GluaDecompileContextP ctx, Function* F, int a, std::string bstr, std::string cstr) { |
| 1177 | DecTable* tbl = (DecTable*)FindFromListTail(&(F->tables), (ListItemCmpFn)MatchTable, &a); |
no test coverage detected