Reuse NIL_OR_UNDEF_P macro

This commit is contained in:
S-H-GAMELINKS 2022-11-22 21:49:54 +09:00 committed by Nobuyoshi Nakada
parent 2c939458ca
commit 040e0c8d67
Notes: git 2022-12-01 16:20:22 +00:00
4 changed files with 4 additions and 4 deletions

2
dir.c
View file

@ -2932,7 +2932,7 @@ dir_globs(VALUE args, VALUE base, int flags)
static VALUE
dir_glob_option_base(VALUE base)
{
if (UNDEF_P(base) || NIL_P(base)) {
if (NIL_OR_UNDEF_P(base)) {
return Qnil;
}
#if USE_OPENDIR_AT