Merge pull request #119 from Mikastiv/master

Fix compile error for the generator
This commit is contained in:
Robin Voetter
2024-02-18 01:30:33 +01:00
committed by GitHub

View File

@@ -12,7 +12,10 @@ pub fn main() void {
defer arena.deinit();
const allocator = arena.allocator();
var args = try std.process.argsWithAllocator(allocator);
var args = std.process.argsWithAllocator(allocator) catch |err| switch (err) {
error.OutOfMemory => @panic("OOM"),
error.InvalidCmdLine => @panic("Invalid command line"),
};
const prog_name = args.next() orelse "vulkan-zig-generator";
var maybe_xml_path: ?[]const u8 = null;