summaryrefslogtreecommitdiff
path: root/include/ruby/assert.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-12 10:21:05 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-12 10:23:33 +0900
commit237bee9d40cbc9d1067694f84793985cc4621cbc (patch)
tree3abf3891fa05f989677fdb1d85f6d2f5f01ac0a1 /include/ruby/assert.h
parent3fcf7f0271a3f29f91b6bda60e518f0fcb026eda (diff)
downloadruby-237bee9d40cbc9d1067694f84793985cc4621cbc.tar.gz
Removed extra stringization
Argument of RUBY_ASSERT_FAIL is already stringized message, so no more extra stringization should be applied.
Diffstat (limited to 'include/ruby/assert.h')
-rw-r--r--include/ruby/assert.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ruby/assert.h b/include/ruby/assert.h
index 7e59da6662..ac9b9c8cc3 100644
--- a/include/ruby/assert.h
+++ b/include/ruby/assert.h
@@ -62,8 +62,8 @@ RBIMPL_SYMBOL_EXPORT_END()
# define RBIMPL_ASSERT_FUNC RBIMPL_CAST((const char *)0)
#endif
-#define RUBY_ASSERT_FAIL(expr) \
- rb_assert_failure(__FILE__, __LINE__, RBIMPL_ASSERT_FUNC, #expr)
+#define RUBY_ASSERT_FAIL(mesg) \
+ rb_assert_failure(__FILE__, __LINE__, RBIMPL_ASSERT_FUNC, mesg)
#define RUBY_ASSERT_MESG(expr, mesg) \
(RB_LIKELY(expr) ? RBIMPL_ASSERT_NOTHING : RUBY_ASSERT_FAIL(mesg))