aboutsummaryrefslogtreecommitdiff
path: root/src/exact_value.cpp
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-09-01 20:38:44 +0100
committerGinger Bill <bill@gingerbill.org>2016-09-01 20:38:44 +0100
commitfa09d805e23c59cb881573a7a1aee5fbc5752ea2 (patch)
tree5407c69e5f63b0d3dcab9eef6fee323273070445 /src/exact_value.cpp
parentff6e21cb879397982cddf3cf5f47bba681271a2c (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.cpp4
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);