diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-25 07:36:47 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-25 07:36:47 +0000 |
commit | 7e323b5dfe906114a62e5ce68fac480f7c38bb58 (patch) | |
tree | 9955bbeae8729cab3e27fa5eaf1eb29ecf772143 /vm_insnhelper.c | |
parent | 7db534a20c78cf4b9d8eb5f3c6a0198c2dd65aad (diff) |
vm_insnhelper.c: remove redefinitions and undefine after used
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index b9bfccac95..4c25ba6e8d 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1344,8 +1344,6 @@ inline VALUE opt_eql_func(VALUE recv, VALUE obj, CALL_INFO ci, CALL_CACHE cc) { -#define BUILTIN_CLASS_P(x, k) (!SPECIAL_CONST_P(x) && RBASIC_CLASS(x) == k) -#define EQ_UNREDEFINED_P(t) BASIC_OP_UNREDEFINED_P(BOP_EQ, t##_REDEFINED_OP_FLAG) if (FIXNUM_2_P(recv, obj)) { if (EQ_UNREDEFINED_P(INTEGER)) { return (recv == obj) ? Qtrue : Qfalse; @@ -1377,6 +1375,8 @@ opt_eql_func(VALUE recv, VALUE obj, CALL_INFO ci, CALL_CACHE cc) return Qundef; } +#undef BUILTIN_CLASS_P +#undef EQ_UNREDEFINED_P VALUE rb_equal_opt(VALUE obj1, VALUE obj2) |