module: enable Module to analyze event handler signatures
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
ce0b764a6d
commit
b3663f7899
4 changed files with 148 additions and 107 deletions
|
|
@ -53,7 +53,7 @@ test "example" {
|
|||
.tick = .{ .handler = tick },
|
||||
};
|
||||
|
||||
fn tick(physics: *Modules(modules).Mod(Physics)) void {
|
||||
fn tick(physics: *mach.ModSet(modules).Mod(Physics)) void {
|
||||
_ = physics;
|
||||
}
|
||||
};
|
||||
|
|
@ -68,8 +68,8 @@ test "example" {
|
|||
};
|
||||
|
||||
fn tick(
|
||||
physics: *Modules(modules).Mod(Physics),
|
||||
renderer: *Modules(modules).Mod(Renderer),
|
||||
physics: *mach.ModSet(modules).Mod(Physics),
|
||||
renderer: *mach.ModSet(modules).Mod(Renderer),
|
||||
) void {
|
||||
_ = renderer;
|
||||
_ = physics;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue