mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-03 11:42:28 +00:00
Match statements; Type System change (Type_Record for all sum and product types)
This commit is contained in:
@@ -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