aboutsummaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-09 05:47:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-02-09 05:47:12 +0000
commitc744ad9c7cbb0d519c4a57a7aef104e46e46df36 (patch)
treeaa6496afa530ee4585616f05f42988e6690ea808 /ruby.c
parentf63f401e7081b97966b350fb098e2340d37b5d0d (diff)
downloadruby-c744ad9c7cbb0d519c4a57a7aef104e46e46df36.tar.gz
rename ADD_FEATURE
* ruby.c (ADD_FEATURE_NAME): rename ADD_FEATURE, as it does not add a feature, but just append a name to the message string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ruby.c b/ruby.c
index a06d88cc3a..23e44cf25a 100644
--- a/ruby.c
+++ b/ruby.c
@@ -776,14 +776,15 @@ feature_option(const char *str, int len, void *arg, const unsigned int enable)
if (matched == 1) goto found;
if (matched > 1) {
VALUE mesg = rb_sprintf("ambiguous feature: `%.*s' (", len, str);
-#define ADD_FEATURE(bit) \
+#define ADD_FEATURE_NAME(bit) \
if (FEATURE_BIT(bit) & set) { \
rb_str_cat_cstr(mesg, #bit); \
if (--matched) rb_str_cat_cstr(mesg, ", "); \
}
- EACH_FEATURES(ADD_FEATURE);
+ EACH_FEATURES(ADD_FEATURE_NAME);
rb_str_cat_cstr(mesg, ")");
rb_exc_raise(rb_exc_new_str(rb_eRuntimeError, mesg));
+#undef ADD_FEATURE_NAME
}
#endif
rb_warn("unknown argument for --%s: `%.*s'",