diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-09 02:37:21 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-09 02:37:21 +0000 |
commit | 8459ceb8609727700855901b5a175566581d6fe8 (patch) | |
tree | 58078d8037017e7271dc3f49e0418ab79935935b /vm_core.h | |
parent | 1bbe67f5f6b3c291da604cd61fedc507072ad168 (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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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") |