mach: fix conflicting symbol name (recent change in Zig)

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-08-19 12:33:42 -07:00
parent 381f2fe9c5
commit d03078fbd6

View file

@ -14,7 +14,7 @@ pub const module = ecs.Module(.{
pub fn App( pub fn App(
modules: anytype, modules: anytype,
init: anytype, // fn (engine: *ecs.World(modules)) !void app_init: anytype, // fn (engine: *ecs.World(modules)) !void
) type { ) type {
// TODO: validate modules.mach is the expected type. // TODO: validate modules.mach is the expected type.
// TODO: validate init has the right function signature // TODO: validate init has the right function signature
@ -28,7 +28,7 @@ pub fn App(
}; };
app.*.engine.set(.mach, .core, core); app.*.engine.set(.mach, .core, core);
app.*.engine.set(.mach, .device, core.device); app.*.engine.set(.mach, .device, core.device);
try init(&app.engine); try app_init(&app.engine);
} }
pub fn deinit(app: *@This(), _: *Core) void { pub fn deinit(app: *@This(), _: *Core) void {