From 135fc51b3b1cccddb328acf745de7734eee62424 Mon Sep 17 00:00:00 2001 From: Robin Voetter Date: Fri, 7 Oct 2022 01:35:26 +0200 Subject: [PATCH] make basetypes with no clear type foreign This allows the user to override them to the proper type --- generator/vulkan/parse.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/vulkan/parse.zig b/generator/vulkan/parse.zig index 9eb2a0b..95634d0 100644 --- a/generator/vulkan/parse.zig +++ b/generator/vulkan/parse.zig @@ -168,7 +168,7 @@ fn parseBaseType(allocator: Allocator, ty: *xml.Element) !registry.Declaration { // macros, which is why this part is not built into the xml/c parser. return registry.Declaration{ .name = name, - .decl_type = .{ .external = {} }, + .decl_type = .{ .foreign = .{ .depends = &.{} } }, }; } }