mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Using UNDEF_P macro
This commit is contained in:
parent
dc1c4e4675
commit
1f4f6c9832
Notes:
git
2022-11-16 09:58:53 +00:00
44 changed files with 290 additions and 290 deletions
|
@ -306,7 +306,7 @@ rb_error_write(VALUE errinfo, VALUE emesg, VALUE errat, VALUE str, VALUE opt, VA
|
|||
if (NIL_P(errinfo))
|
||||
return;
|
||||
|
||||
if (errat == Qundef) {
|
||||
if (UNDEF_P(errat)) {
|
||||
errat = Qnil;
|
||||
}
|
||||
eclass = CLASS_OF(errinfo);
|
||||
|
@ -358,7 +358,7 @@ rb_ec_error_print(rb_execution_context_t * volatile ec, volatile VALUE errinfo)
|
|||
if (EC_EXEC_TAG() == TAG_NONE) {
|
||||
errat = rb_get_backtrace(errinfo);
|
||||
}
|
||||
if (emesg == Qundef) {
|
||||
if (UNDEF_P(emesg)) {
|
||||
emesg = Qnil;
|
||||
emesg = rb_get_detailed_message(errinfo, opt);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue