From 34030faa9d9b9851ecd2d2b31dad1fdafbc89149 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sun, 7 Apr 2024 13:54:26 -0700 Subject: [PATCH] module: fix local_events validation Signed-off-by: Stephen Gutekanst --- src/module/module.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/module/module.zig b/src/module/module.zig index b34d1c69..a0551f6a 100644 --- a/src/module/module.zig +++ b/src/module/module.zig @@ -73,7 +73,7 @@ fn ModuleInterface(comptime M: type) type { if (!@hasDecl(M, "name")) @compileError("mach: module must have `pub const name = .foobar;`"); if (@typeInfo(@TypeOf(M.name)) != .EnumLiteral) @compileError("mach: module must have `pub const name = .foobar;`, found type:" ++ @typeName(M.name)); if (@hasDecl(M, "global_events")) validateEvents("mach: module ." ++ @tagName(M.name) ++ " global_events ", M.global_events); - if (@hasDecl(M, "local_events")) validateEvents("mach: module ." ++ @tagName(M.name) ++ " local_events ", M.global_events); + if (@hasDecl(M, "local_events")) validateEvents("mach: module ." ++ @tagName(M.name) ++ " local_events ", M.local_events); _ = ComponentTypesM(M); return M; }