hostapps/src/main.zig

16 lines
416 B
Zig
Raw Normal View History

2024-01-12 22:47:10 -06:00
const std = @import("std");
const builtin = @import("builtin");
const build_options = @import("build_options");
2024-01-28 20:20:37 -06:00
const cli = @import("zig-cli");
2024-01-12 22:47:10 -06:00
const connect = @import("connect.zig");
2024-01-28 20:20:37 -06:00
const options = @import("options.zig");
2024-01-12 22:47:10 -06:00
pub fn main() !void {
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
const alloc = gpa.allocator();
2024-01-28 20:20:37 -06:00
options.options.alloc = alloc;
2024-01-12 22:47:10 -06:00
2024-01-28 20:20:37 -06:00
return cli.run(options.app, alloc);
2024-01-12 22:47:10 -06:00
}