summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-09 07:42:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-09 07:42:21 +0000
commitb6dcc3963aeeb46963957a96bb56646683d27e01 (patch)
treeec3cbdb7a747f7ea562776e73ddf7313908dcdff /ruby.c
parent460e9d8d83b22efad02f69925492195124f52a86 (diff)
ruby.c: set feature bits only
* ruby.c (DEFAULT_FEATURES): set feature bits only, excluding debug features. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index a9bb60b..21061d3 100644
--- a/ruby.c
+++ b/ruby.c
@@ -78,6 +78,8 @@ char *getenv();
#define DEFINE_DEBUG_FEATURE(bit) feature_debug_##bit,
enum feature_flag_bits {
EACH_FEATURES(DEFINE_FEATURE)
+ feature_debug_flag_first,
+ feature_debug_flag_begin = feature_debug_flag_first - 1,
EACH_DEBUG_FEATURES(DEFINE_DEBUG_FEATURE)
feature_flag_count
};
@@ -133,7 +135,7 @@ enum {
| FEATURE_BIT(debug_frozen_string_literal)
),
DEFAULT_FEATURES = (
- ~0U
+ (FEATURE_BIT(debug_flag_first)-1)
#if DISABLE_RUBYGEMS
& ~FEATURE_BIT(gems)
#endif