aboutsummaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-25 08:34:00 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-01-25 08:34:00 +0000
commitafa7c15d6e67af1bf8f90da4989be8b8615a16f6 (patch)
tree9d96377300dccba7046dd234e50bea709950e647 /vm_core.h
parente56b9b4383a4d8b62a43a2b851aabeb2a7f96259 (diff)
downloadruby-afa7c15d6e67af1bf8f90da4989be8b8615a16f6.tar.gz
fix build with VM_CHECK_MODE > 0
* ruby_assert.h (RUBY_ASSERT_WHEN): fix reference to macro name * vm_core.h: include ruby_assert.h before using [ruby-core:73371] This does not fix the test failure documented in [ruby-core:73371], that is for later. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index 91e65fc3de..7b5adbcbd3 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -42,6 +42,8 @@
#define VMDEBUG 3
#endif
+#include "ruby_assert.h"
+
#if VM_CHECK_MODE > 0
#define VM_ASSERT(expr) ( \
RUBY_ASSERT_WHEN(VM_CHECK_MODE > 0, expr))
@@ -61,7 +63,6 @@
#include "method.h"
#include "ruby_atomic.h"
#include "ccan/list/list.h"
-#include "ruby_assert.h"
#include "ruby/thread_native.h"
#if defined(_WIN32)