mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
1bbe67f5f6
commit
8459ceb860
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Oct 9 11:37:19 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* vm_core.h (VM_ASSERT): stringify expr here before expansion in
|
||||
RUBY_ASSERT_WHEN.
|
||||
|
||||
Sat Oct 8 10:54:22 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/-test-/memory_status/memory_status.c (read_status): use
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue