Optional main for DLL; access struct elements by "index"

This commit is contained in:
Ginger Bill
2017-05-17 21:23:52 +01:00
parent e025a828ca
commit 41aa4e606b
6 changed files with 434 additions and 36 deletions
+1 -1
View File
@@ -1226,7 +1226,7 @@ Selection lookup_field(gbAllocator a, Type *type_, String field_name, bool is_ty
}
Selection lookup_field_from_index(gbAllocator a, Type *type, i64 index) {
GB_ASSERT(is_type_struct(type) || is_type_tuple(type));
GB_ASSERT(is_type_struct(type) || is_type_union(type) || is_type_tuple(type));
type = base_type(type);
i64 max_count = 0;