diff options
Diffstat (limited to 'ruby_assert.h')
-rw-r--r-- | ruby_assert.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ruby_assert.h b/ruby_assert.h index 8f603b56e9..de8049151f 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 |