mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-14 00:35:25 +00:00
Merge branch 'master' of https://github.com/gingerBill/Odin
This commit is contained in:
@@ -881,6 +881,10 @@ bool is_type_empty_union(Type *t) {
|
||||
t = base_type(t);
|
||||
return t->kind == Type_Union && t->Union.variants.count == 0;
|
||||
}
|
||||
bool is_type_empty_struct(Type *t) {
|
||||
t = base_type(t);
|
||||
return t->kind == Type_Struct && !t->Struct.is_raw_union && t->Struct.fields.count == 0;
|
||||
}
|
||||
|
||||
|
||||
bool is_type_valid_for_keys(Type *t) {
|
||||
|
||||
Reference in New Issue
Block a user