mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-13 22:15:36 -04:00
Match statements; Type System change (Type_Record for all sum and product types)
This commit is contained in:
1 parent
ff6e21cb87
commit
fa09d805e2
16 files changed
+1172
-622
No files matched your search
@@ -26,6 +26,10 @@ struct ExactValue {
|
||||
};
|
||||
};
|
||||
|
||||
HashKey hash_exact_value(ExactValue v) {
|
||||
return hashing_proc(&v, gb_size_of(ExactValue));
|
||||
}
|
||||
|
||||
ExactValue make_exact_value_bool(b32 b) {
|
||||
ExactValue result = {ExactValue_Bool};
|
||||
result.value_bool = (b != 0);
|
||||
|
||||
Reference in new issue
Block a user