From c97bcdde0a6979e056b391bc2621f576546607b0 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Thu, 8 Sep 2022 07:26:30 -0700 Subject: [PATCH] mach: improve compatibility with self-hosted compiler Signed-off-by: Stephen Gutekanst --- src/engine.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine.zig b/src/engine.zig index 52cbc071..ad09381f 100644 --- a/src/engine.zig +++ b/src/engine.zig @@ -13,8 +13,8 @@ pub const module = ecs.Module(.{ }); pub fn App( - modules: anytype, - app_init: anytype, // fn (engine: *ecs.World(modules)) !void + comptime modules: anytype, + comptime app_init: anytype, // fn (engine: *ecs.World(modules)) !void ) type { // TODO: validate modules.mach is the expected type. // TODO: validate init has the right function signature