Collect args with argsWithAllocator

This commit is contained in:
Jared Tyler Miller 2025-12-15 18:28:23 -05:00
parent 95f5a3683c
commit 70dd969a5b

View file

@ -133,7 +133,8 @@ fn createCircleTexture() ?rl.Texture2D {
pub fn main() !void { pub fn main() !void {
// parse args // parse args
var bench_mode = false; var bench_mode = false;
var args = std.process.args(); var args = try std.process.argsWithAllocator(std.heap.page_allocator);
defer args.deinit();
_ = args.skip(); // skip program name _ = args.skip(); // skip program name
while (args.next()) |arg| { while (args.next()) |arg| {
if (std.mem.eql(u8, arg, "--bench")) { if (std.mem.eql(u8, arg, "--bench")) {