Basic basetype parsing

This commit is contained in:
Robin Voetter
2020-06-09 17:26:26 +02:00
parent 3945c8caf5
commit ba6180e336
2 changed files with 50 additions and 11 deletions

View File

@@ -32,10 +32,11 @@ pub const TypeInfo = union(enum) {
Handle: Handle,
FnPtr: Command,
Command: Command,
Alias: []const u8,
Alias: []const u8, // Alias of another declaration
Pointer: Pointer,
Array: Array,
Opaque: void,
Foreign: Foreign
};
pub const Container = struct {
@@ -108,3 +109,7 @@ pub const Array = struct {
size: ArraySize,
child: *TypeInfo,
};
pub const Foreign = struct {
dependency: []const u8, // Either a header or vk_platform
};