mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
439224a590
commit
4a01021002
6 changed files with 29 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue