forked from mirror/vulkan-zig
zig stage 2 compatibility
This commit is contained in:
@@ -109,8 +109,8 @@ pub const Command = struct {
|
||||
|
||||
params: []Param,
|
||||
return_type: *TypeInfo,
|
||||
success_codes: [][]const u8,
|
||||
error_codes: [][]const u8,
|
||||
success_codes: []const []const u8,
|
||||
error_codes: []const []const u8,
|
||||
};
|
||||
|
||||
pub const Pointer = struct {
|
||||
|
||||
@@ -547,7 +547,7 @@ fn Renderer(comptime WriterType: type) type {
|
||||
if (optional) {
|
||||
try self.writer.writeByte('?');
|
||||
}
|
||||
try self.writer.writeAll("fn(");
|
||||
try self.writer.writeAll("*const fn(");
|
||||
for (command_ptr.params) |param| {
|
||||
try self.writeIdentifierWithCase(.snake, param.name);
|
||||
try self.writer.writeAll(": ");
|
||||
|
||||
Reference in New Issue
Block a user