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

Function UnsetPending

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

Source from the content-addressed store, hash-verified

1155}
1156
1157void 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
1176int SetTable(GluaDecompileContextP ctx, Function* F, int a, std::string bstr, std::string cstr) {
1177 DecTable* tbl = (DecTable*)FindFromListTail(&(F->tables), (ListItemCmpFn)MatchTable, &a);

Callers 4

SetTableFunction · 0.85
GetRFunction · 0.85
DeclareVariableFunction · 0.85
ProcessCodeFunction · 0.85

Calls 4

DeclareLocalFunction · 0.85
RemoveFromSetFunction · 0.85
stringClass · 0.50
to_stringFunction · 0.50

Tested by

no test coverage detected