aboutsummaryrefslogtreecommitdiffstats
path: root/ruby_assert.h
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-25 08:34:00 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-25 08:34:00 +0000
commite97c0c5494b9a698c37eab0853758f2fae7ab190 (patch)
tree9d96377300dccba7046dd234e50bea709950e647 /ruby_assert.h
parentee1f41447130a0887bf10a1c330286962970e16f (diff)
downloadruby-e97c0c5494b9a698c37eab0853758f2fae7ab190.tar.gz
fix build with VM_CHECK_MODE > 0
* ruby_assert.h (RUBY_ASSERT_WHEN): fix reference to macro name * vm_core.h: include ruby_assert.h before using [ruby-core:73371] This does not fix the test failure documented in [ruby-core:73371], that is for later. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby_assert.h')
-rw-r--r--ruby_assert.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby_assert.h b/ruby_assert.h
index de8049151f..3383e4fc6c 100644
--- a/ruby_assert.h
+++ b/ruby_assert.h
@@ -31,7 +31,7 @@ NORETURN(void rb_assert_failure(const char *, int, const char *, const char *));
RUBY_ASSERT_MESG(!(cond) || (expr), mesg)
#endif
#define RUBY_ASSERT(expr) RUBY_ASSERT_MESG_WHEN(!RUBY_NDEBUG+0, expr, #expr)
-#define RUBY_ASSERT_WHEN(cond, expr) RUBY_ASSERT_WHEN_0(cond, expr, #expr)
+#define RUBY_ASSERT_WHEN(cond, expr) RUBY_ASSERT_MESG_WHEN(cond, expr, #expr)
#undef assert
#define assert RUBY_ASSERT