module: fix local_events validation
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
f578e1f5e2
commit
34030faa9d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue