forked from mirror/vulkan-zig
WIP rewriting generator for learning purposes
This commit is contained in:
@@ -22,6 +22,7 @@ fn reportParseErrors(tree: std.zig.Ast) !void {
|
||||
}
|
||||
try w.writeAll("^\n");
|
||||
}
|
||||
try w.flush();
|
||||
}
|
||||
|
||||
fn oomPanic() noreturn {
|
||||
@@ -70,6 +71,9 @@ pub fn main() !void {
|
||||
) catch |err| {
|
||||
std.process.fatal("failed to write to stdout: {s}", .{@errorName(err)});
|
||||
};
|
||||
w.interface.flush() catch |err| {
|
||||
std.process.fatal("failed to flush stdout: {s}", .{@errorName(err)});
|
||||
};
|
||||
return;
|
||||
} else if (std.mem.eql(u8, arg, "-a") or std.mem.eql(u8, arg, "--api")) {
|
||||
const api_str = args.next() orelse {
|
||||
|
||||
Reference in New Issue
Block a user