add(examples/demo): application to showcase a more complex application
All checks were successful
Zig Project Action / Lint, Spell-check and test zig project (push) Successful in 53s

Further improvements for example applications; Demo example is now
default build target (when not providing example configuration).
This commit is contained in:
2025-02-21 22:57:14 +01:00
parent c634e1affc
commit 6ccab74c94
11 changed files with 172 additions and 28 deletions

View File

@@ -35,9 +35,8 @@ pub fn main() !void {
errdefer |err| log.err("Application Error: {any}", .{err});
var gpa: std.heap.GeneralPurposeAllocator(.{}) = .init;
defer if (gpa.deinit() == .leak) {
log.err("memory leak", .{});
};
defer if (gpa.deinit() == .leak) log.err("memory leak", .{});
const allocator = gpa.allocator();
var app: App = .init;