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

Function DeclareVariable

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

Source from the content-addressed store, hash-verified

1300}
1301
1302void DeclareVariable(GluaDecompileContextP ctx, Function* F, std::string name, int reg) {
1303 IS_VARIABLE(reg) = 1;
1304 if (F->R[reg].length()>0) {
1305 F->R[reg].clear();
1306 }
1307 F->R[reg] = name;
1308 F->Rprio[reg] = 0;
1309 UnsetPending(ctx, F, reg);
1310 if (ctx->error.length()>0) return;
1311}
1312
1313void OutputAssignments(GluaDecompileContextP ctx, Function* F) {
1314 int i, srcs;

Callers 4

GetRFunction · 0.85
DeclareLocalsFunction · 0.85
DeclareLocalFunction · 0.85
ProcessCodeFunction · 0.85

Calls 3

UnsetPendingFunction · 0.85
lengthMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected