Union tag stored as an integer

This commit is contained in:
Ginger Bill
2017-10-08 15:16:13 +01:00
parent 4e42d7df43
commit 6424966b7a
7 changed files with 151 additions and 124 deletions
+1
View File
@@ -86,6 +86,7 @@ Type_Info_Struct :: struct #ordered {
Type_Info_Union :: struct #ordered {
variants: []^Type_Info,
tag_offset: int,
tag_type: ^Type_Info,
};
Type_Info_Enum :: struct #ordered {
base: ^Type_Info,