summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/hash.c b/hash.c
index af1d832a20..f51f46b04b 100644
--- a/hash.c
+++ b/hash.c
@@ -55,6 +55,19 @@ eql(args)
return (VALUE)rb_eql(args[0], args[1]);
}
+static VALUE
+eql_failed()
+{
+ return Qfalse;
+}
+
+static VALUE
+any_eql(args)
+ VALUE *args;
+{
+ return rb_rescue(eql, (VALUE)args, eql_failed, 0);
+}
+
static int
rb_any_cmp(a, b)
VALUE a, b;