module: enable Module to analyze event handler signatures

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-04-05 05:01:58 -07:00 committed by Stephen Gutekanst
parent ce0b764a6d
commit b3663f7899
4 changed files with 148 additions and 107 deletions

View file

@ -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;