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

Function PrintJmpDestStatement

src/Chain/libraries/glua/glua_statement.cpp:225–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223 }
224
225 void PrintJmpDestStatement(GluaDecompileContextP ctx, AstStatement* stmt, std::stringstream &buff, int indent) {
226 if (ctx->debug) {
227 ListItem* jmpitem = NULL;
228 PrintIndent(buff, indent);
229 buff << "-- JMP destination in line " << stmt->line << ", jump from line";
230 jmpitem = stmt->sub->head;
231 while (jmpitem) {
232 AstStatement* jmpstmt = lua_cast(AstStatement*, jmpitem);
233 buff << " " << jmpstmt->line;
234 jmpitem = jmpitem->next;
235 }
236 buff << "\n";
237 }
238 if (stmt->code.length() > 0) {
239 PrintIndent(buff, indent);
240 buff << "::pc_" << stmt->line << "::\n";
241 }
242 }
243
244 void PrintAstStatement(GluaDecompileContextP ctx, AstStatement* stmt, std::stringstream &buff, int indent) {
245 switch (stmt->type) {

Callers 1

PrintAstStatementFunction · 0.85

Calls 2

PrintIndentFunction · 0.85
lengthMethod · 0.45

Tested by

no test coverage detected