diff options
author | S-H-GAMELINKS <[email protected]> | 2022-11-22 21:49:54 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2022-12-02 01:19:55 +0900 |
commit | 040e0c8d671f86b20e2b929b4077fcc74aa55074 (patch) | |
tree | 2b807d5bc11e24295195acce6014ffbc8bb88eb3 /error.c | |
parent | 2c939458cab06b4fda09b55a57b8bac30efe6b17 (diff) |
Reuse NIL_OR_UNDEF_P macro
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6787
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2084,7 +2084,7 @@ name_err_mesg_to_str(VALUE obj) break; default: d = rb_protect(name_err_mesg_receiver_name, obj, &state); - if (state || UNDEF_P(d) || NIL_P(d)) + if (state || NIL_OR_UNDEF_P(d)) d = rb_protect(rb_inspect, obj, &state); if (state) { rb_set_errinfo(Qnil); |