This requires apps expose a `pub const App` from their `main.zig`, effectively adopting the high-level/low-level application API outlined in hexops/mach#349 If `pub const App` does not exist, a clear compiler error is produced: ``` ./src/platform/common.zig:5:9: error: expected e.g. `pub const App = mach.App(modules, init)' (App definition missing in your main Zig file) @compileError("expected e.g. `pub const App = mach.App(modules, init)' (App definition missing in your main Zig file)"); ^ ./src/platform/native.zig:13:28: note: called from here common.checkApplication(app_pkg); ^ ./src/platform/native.zig:12:10: note: called from here comptime { ^ ./src/platform/native.zig:15:20: error: container '.app' has no member called 'App' const App = app_pkg.App; ^ ``` Signed-off-by: Stephen Gutekanst <stephen@hexops.com> |
||
|---|---|---|
| .. | ||
| platform | ||
| resource | ||
| Core.zig | ||
| enums.zig | ||
| main.zig | ||
| platform.zig | ||
| structs.zig | ||
| Timer.zig | ||