mach: begin unified entry point interface

This commit is contained in:
iddev5 2022-04-21 14:32:08 +05:30 committed by Stephen Gutekanst
parent ffcd5dfaa8
commit d99359421e
2 changed files with 72 additions and 35 deletions

12
src/entry/native.zig Normal file
View file

@ -0,0 +1,12 @@
const app = @import("app");
pub fn main() !void {
try app.init();
defer app.deinit();
while (true) {
const success = try app.update();
if (!success)
break;
}
}