aboutsummaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-22 08:37:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-22 08:37:36 +0000
commit4a01021002d8ec1a792d26214c2da04b88433bf6 (patch)
tree109930eb391cbb7a8a62e2f5a2fa485a4fda037b /vm_core.h
parent439224a5904411b288e441096e21a41244ddd1d6 (diff)
downloadruby-4a01021002d8ec1a792d26214c2da04b88433bf6.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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_core.h b/vm_core.h
index 38fcc0c333..91e65fc3de 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -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)