mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Change union layout to store type info rather than an integer; ternary expression for types with constant condition
This commit is contained in:
+2
-1
@@ -82,7 +82,8 @@ TypeInfo :: struct #ordered {
|
||||
Struct :: Record;
|
||||
RawUnion :: Record;
|
||||
Union :: struct #ordered {
|
||||
variants: []^TypeInfo;
|
||||
variants: []^TypeInfo;
|
||||
tag_offset: int;
|
||||
};
|
||||
Enum :: struct #ordered {
|
||||
base: ^TypeInfo;
|
||||
|
||||
Reference in New Issue
Block a user