mach: fix conflicting symbol name (recent change in Zig)
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
381f2fe9c5
commit
d03078fbd6
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue