aboutsummaryrefslogtreecommitdiffstats
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
commit629cc6c678f2819c07d80f4fb82a86678485d67c (patch)
tree58078d8037017e7271dc3f49e0418ab79935935b /vm_core.h
parent766ea403657a36b299acf60f85fa4ea9ba827930 (diff)
downloadruby-629cc6c678f2819c07d80f4fb82a86678485d67c.tar.gz
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")