diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-22 08:37:36 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-22 08:37:36 +0000 |
commit | e5801c5584673a1cd812eaf6b7643d7dbe5e4a61 (patch) | |
tree | 109930eb391cbb7a8a62e2f5a2fa485a4fda037b /vm_core.h | |
parent | 4c3697bd51c2ba45b84dd8046c32b1bde26fdcb0 (diff) | |
download | ruby-e5801c5584673a1cd812eaf6b7643d7dbe5e4a61.tar.gz |
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 'vm_core.h')
-rw-r--r-- | vm_core.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -44,8 +44,7 @@ #if VM_CHECK_MODE > 0 #define VM_ASSERT(expr) ( \ - LIKELY(expr) ? (void)0 : \ - rb_bug("%s:%d assertion violation - %s", __FILE__, __LINE__, #expr)) + RUBY_ASSERT_WHEN(VM_CHECK_MODE > 0, expr)) #else #define VM_ASSERT(expr) ((void)0) #endif @@ -62,6 +61,7 @@ #include "method.h" #include "ruby_atomic.h" #include "ccan/list/list.h" +#include "ruby_assert.h" #include "ruby/thread_native.h" #if defined(_WIN32) |