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

Function PrintLogicExp

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

Source from the content-addressed store, hash-verified

488}
489
490void PrintLogicExp(std::stringstream &str, int dest, LogicExp* exp, int inv_, int rev) {
491 int inv = inv_;
492 while (exp->next) {
493 char* op;
494 int cond = exp->dest > dest;
495 inv = cond ? inv_ : !inv_;
496 PrintLogicItem(str, exp, inv, rev);
497 exp = exp->next;
498 if (inv_) cond = !cond;
499 if (rev) cond = !cond;
500 op = (char*)(cond ? "and" : "or");
501 str << " " << op << " ";
502 }
503 PrintLogicItem(str, exp, inv_, rev);
504}
505
506void TieAsNext(LogicExp* curr, LogicExp* item) {
507 curr->next = item;

Callers 2

PrintLogicItemFunction · 0.85
WriteBooleanFunction · 0.85

Calls 1

PrintLogicItemFunction · 0.85

Tested by

no test coverage detected