aboutsummaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
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)