forked from mirror/vulkan-zig
fix compile error
This commit is contained in:
@@ -12,7 +12,10 @@ pub fn main() void {
|
|||||||
defer arena.deinit();
|
defer arena.deinit();
|
||||||
const allocator = arena.allocator();
|
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";
|
const prog_name = args.next() orelse "vulkan-zig-generator";
|
||||||
|
|
||||||
var maybe_xml_path: ?[]const u8 = null;
|
var maybe_xml_path: ?[]const u8 = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user