Skip to content

Commit

Permalink
wasm-decompile: add function index comments
Browse files Browse the repository at this point in the history
  • Loading branch information
python273 committed Oct 4, 2024
1 parent 790bc04 commit 83e2564
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/decompiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -826,9 +826,9 @@ struct Decompiler {
}
}
if (is_import) {
s += ";";
s += cat("; // f", std::to_string(func_index));
} else {
s += " {\n";
s += cat(" { // f", std::to_string(func_index), "\n");
auto val = DecompileExpr(ast.exp_stack[0], nullptr);
IndentValue(val, indent_amount, {});
for (auto& stat : val.v) {
Expand Down

0 comments on commit 83e2564

Please sign in to comment.