Skip to content

Commit

Permalink
better function signature
Browse files Browse the repository at this point in the history
  • Loading branch information
190n committed May 21, 2024
1 parent ab0ec36 commit 1cecfe9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/tail.zig
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ pub const Cpu = struct {
}
};

const GadgetFunc = *const fn (*Cpu, u32, [*]Inst, [*]u8) void;
const GadgetFunc = *const fn (
cpu: *Cpu,
decoded: Decoded.Int,
pc: [*]Inst,
i: [*]u8,
) void;

pub const Decoded = union {
xy: [2]u4,
Expand Down

0 comments on commit 1cecfe9

Please sign in to comment.