using on struct/union fields

This commit is contained in:
Ginger Bill
2016-08-24 23:25:56 +01:00
parent 6bd898e552
commit d2c64be85c
11 changed files with 461 additions and 189 deletions
+2
View File
@@ -112,6 +112,8 @@ struct Type {
b32 is_packed;
} Struct;
struct {
// IMPORTANT HACK(bill): The positions of fields and field_count
// must be same for Struct and Union
Entity **fields; // Entity_Variable
isize field_count;
} Union;