forked from mirror/vulkan-zig
update in response to std.builtin.Type field renames
This commit is contained in:
@@ -99,13 +99,13 @@ comptime {
|
||||
|
||||
fn reallyRefAllDecls(comptime T: type) void {
|
||||
switch (@typeInfo(T)) {
|
||||
.Struct, .Union => {
|
||||
.@"struct", .@"union" => {
|
||||
reallyRefAllContainerDecls(T);
|
||||
inline for (std.meta.fields(T)) |field| {
|
||||
reallyRefAllDecls(field.type);
|
||||
}
|
||||
},
|
||||
.Enum, .Opaque => {
|
||||
.@"enum", .@"opaque" => {
|
||||
reallyRefAllContainerDecls(T);
|
||||
},
|
||||
else => {},
|
||||
|
||||
Reference in New Issue
Block a user