aboutsummaryrefslogtreecommitdiffstats
path: root/internal.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-20 14:42:08 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-10-20 22:05:27 +0900
commit192bc725290ca4b271bff2bae6123d84c25f7173 (patch)
tree9f50fcf171aa5f73c2bb944aa05b4d10e5dc614f /internal.h
parentf55212bce939f736559709a8cd16c409772389c8 (diff)
downloadruby-192bc725290ca4b271bff2bae6123d84c25f7173.tar.gz
Define `UNDEF_P` and `NIL_OR_UNDEF_P` [EXPERIMENTAL]
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h3
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