summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-09 02:37:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-10-09 02:37:21 +0000
commit8459ceb8609727700855901b5a175566581d6fe8 (patch)
tree58078d8037017e7271dc3f49e0418ab79935935b /vm_core.h
parent1bbe67f5f6b3c291da604cd61fedc507072ad168 (diff)
vm_core.h: stringify in VM_ASSERT
* vm_core.h (VM_ASSERT): stringify expr here before expansion in RUBY_ASSERT_WHEN. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index ccba902a36..f3e9a72cb0 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -46,7 +46,7 @@
#if VM_CHECK_MODE > 0
#define VM_ASSERT(expr) ( \
- RUBY_ASSERT_WHEN(VM_CHECK_MODE > 0, expr))
+ RUBY_ASSERT_MESG_WHEN(VM_CHECK_MODE > 0, expr, #expr))
#define VM_UNREACHABLE(func) rb_bug(#func ": unreachable")