Record type field names

This commit is contained in:
Ginger Bill
2017-02-12 11:31:04 +00:00
parent e1fdd675ce
commit b9ed546ce0
8 changed files with 228 additions and 203 deletions
+3 -6
View File
@@ -14,13 +14,10 @@
// IMPORTANT NOTE(bill): Do not change the order of any of this data
// The compiler relies upon this _exact_ order
Type_Info_Member :: struct #ordered {
name: string, // can be empty if tuple
type_info: ^Type_Info,
offset: int, // offsets may not be used in tuples
}
Type_Info_Record :: struct #ordered {
fields: []Type_Info_Member,
types: []^Type_Info,
names: []string,
offsets: []int, // offsets may not be used in tuples
size: int, // in bytes
align: int, // in bytes
packed: bool,