summaryrefslogtreecommitdiff
path: root/ruby_assert.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-22 08:37:36 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-22 08:37:36 (GMT)
commit4a01021002d8ec1a792d26214c2da04b88433bf6 (patch)
tree109930eb391cbb7a8a62e2f5a2fa485a4fda037b /ruby_assert.h
parent439224a5904411b288e441096e21a41244ddd1d6 (diff)
vm_core.h: use RUBY_ASSERT
* vm_core.h (VM_ASSERT): use RUBY_ASSERT instead of rb_bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby_assert.h')
-rw-r--r--ruby_assert.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ruby_assert.h b/ruby_assert.h
index 8f603b5..de80491 100644
--- a/ruby_assert.h
+++ b/ruby_assert.h
@@ -31,6 +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)
#undef assert
#define assert RUBY_ASSERT