Skip to content

Commit

Permalink
Add CodeBuilder.commit
Browse files Browse the repository at this point in the history
  • Loading branch information
vova7878 committed Feb 4, 2024
1 parent 0a2c1e5 commit 9045b69
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/v7878/dex/bytecode/CodeBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,11 @@ public CodeBuilder if_(boolean value, Consumer<CodeBuilder> true_branch,
return this;
}

public CodeBuilder commit(Consumer<CodeBuilder> branch) {
branch.accept(this);
return this;
}

private void format_35c_checks(int arg_count, int arg_reg1, int arg_reg2,
int arg_reg3, int arg_reg4, int arg_reg5) {
Checks.checkRange(arg_count, 0, 6);
Expand Down

0 comments on commit 9045b69

Please sign in to comment.