diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-10-20 14:42:08 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-10-20 22:05:27 +0900 |
commit | 192bc725290ca4b271bff2bae6123d84c25f7173 (patch) | |
tree | 9f50fcf171aa5f73c2bb944aa05b4d10e5dc614f /internal.h | |
parent | f55212bce939f736559709a8cd16c409772389c8 (diff) |
Define `UNDEF_P` and `NIL_OR_UNDEF_P` [EXPERIMENTAL]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6599
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 695c9cfb7e..b63af50616 100644 --- a/internal.h +++ b/internal.h @@ -25,6 +25,9 @@ /* Prevent compiler from reordering access */ #define ACCESS_ONCE(type,x) (*((volatile type *)&(x))) +#define UNDEF_P RB_UNDEF_P +#define NIL_OR_UNDEF_P RB_NIL_OR_UNDEF_P + #include "ruby/ruby.h" /* Following macros were formerly defined in this header but moved to somewhere |