summaryrefslogtreecommitdiff
path: root/include/ruby/node.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ruby/node.h')
-rw-r--r--include/ruby/node.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ruby/node.h b/include/ruby/node.h
index 73c499b61c..e3722e0c41 100644
--- a/include/ruby/node.h
+++ b/include/ruby/node.h
@@ -484,6 +484,10 @@ enum ruby_node_flags {
#define NOEX_SUPER 0x20
#define NOEX_VCALL 0x40
+#define NOEX_SAFE(n) (((n) >> 8) & 0x0F)
+#define NOEX_WITH(n, s) ((s << 8) | n)
+#define NOEX_WITH_SAFE(n) NOEX_WITH(n, rb_safe_level())
+
VALUE rb_parser_new(void);
VALUE rb_parser_end_seen_p(VALUE);