From f2b18d64448ab09dd5e5e6a180d38d90d5aaf367 Mon Sep 17 00:00:00 2001 From: Taylan Kammer Date: Thu, 27 Mar 2025 21:18:09 +0100 Subject: new parser --- src/libzisp/value.zig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libzisp/value.zig') 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. -- cgit v1.2.3