Collect args with argsWithAllocator
This commit is contained in:
parent
95f5a3683c
commit
70dd969a5b
1 changed files with 2 additions and 1 deletions
|
|
@ -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")) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue