aboutsummaryrefslogtreecommitdiffstats
path: root/constant.h
diff options
context:
space:
mode:
Diffstat (limited to 'constant.h')
-rw-r--r--constant.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/constant.h b/constant.h
index 8c854bfffa..c7de5da533 100644
--- a/constant.h
+++ b/constant.h
@@ -13,9 +13,15 @@
typedef enum {
CONST_PUBLIC = 0x00,
- CONST_PRIVATE = 0x01
+ CONST_PRIVATE,
+ CONST_VISIBILITY_MAX
} rb_const_flag_t;
+#define RB_CONST_PRIVATE_P(ce) \
+ ((ce)->flag == CONST_PRIVATE)
+#define RB_CONST_PUBLIC_P(ce) \
+ ((ce)->flag == CONST_PUBLIC)
+
typedef struct rb_const_entry_struct {
rb_const_flag_t flag;
int line;