summaryrefslogtreecommitdiff
path: root/src/libzisp/value.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/libzisp/value.zig')
-rw-r--r--src/libzisp/value.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libzisp/value.zig b/src/libzisp/value.zig
index 2561ca7..fbe907a 100644
--- a/src/libzisp/value.zig
+++ b/src/libzisp/value.zig
@@ -285,6 +285,10 @@ pub const Value = packed union {
std.debug.dumpHex(std.mem.asBytes(&v));
}
+ pub fn eq(v1: Value, v2: Value) bool {
+ return v1.bits == v2.bits;
+ }
+
// The following aren't type predicates per se, but rather determine which
// general category the value is in. The exceptions are fixnum and double,
// since those aren't sub-categorized into further types.