diff options
| author | Ginger Bill <bill@gingerbill.org> | 2016-09-01 20:38:44 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2016-09-01 20:38:44 +0100 |
| commit | fa09d805e23c59cb881573a7a1aee5fbc5752ea2 (patch) | |
| tree | 5407c69e5f63b0d3dcab9eef6fee323273070445 /src/exact_value.cpp | |
| parent | ff6e21cb879397982cddf3cf5f47bba681271a2c (diff) | |
Match statements; Type System change (Type_Record for all sum and product types)
Diffstat (limited to 'src/exact_value.cpp')
| -rw-r--r-- | src/exact_value.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/exact_value.cpp b/src/exact_value.cpp index f428c9834..44e291af0 100644 --- a/src/exact_value.cpp +++ b/src/exact_value.cpp @@ -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); |