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

Function FlushWhile1

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

Source from the content-addressed store, hash-verified

830}
831
832void FlushWhile1(Function* F) {
833 LoopItem* walk = F->loop_ptr;
834 std::stringstream str;
835
836 if (walk->type == WHILE_STMT && walk->start <= F->pc && walk->body == -1) {
837 AstStatement* whilestmt = walk->block;
838 whilestmt->code = std::string("1");
839 RawAddAstStatement(F, whilestmt);
840 F->currStmt = whilestmt;
841 walk->body = walk->start;
842 walk = walk->parent;
843 }
844}
845
846void FlushBoolean(GluaDecompileContextP ctx, Function* F) {
847 if (F->bools.size == 0) {

Callers 1

FlushBooleanFunction · 0.85

Calls 2

RawAddAstStatementFunction · 0.85
stringClass · 0.50

Tested by

no test coverage detected