ruby-changes:44306
From: nobu <ko1@a...>
Date: Sun, 9 Oct 2016 11:37:30 +0900 (JST)
Subject: [ruby-changes:44306] nobu:r56378 (trunk): vm_core.h: stringify in VM_ASSERT
nobu 2016-10-09 11:37:21 +0900 (Sun, 09 Oct 2016) New Revision: 56378 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56378 Log: vm_core.h: stringify in VM_ASSERT * vm_core.h (VM_ASSERT): stringify expr here before expansion in RUBY_ASSERT_WHEN. Modified files: trunk/ChangeLog trunk/vm_core.h Index: ChangeLog =================================================================== --- ChangeLog (revision 56377) +++ ChangeLog (revision 56378) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun Oct 9 11:37:19 2016 Nobuyoshi Nakada <nobu@r...> + + * vm_core.h (VM_ASSERT): stringify expr here before expansion in + RUBY_ASSERT_WHEN. + Sat Oct 8 10:54:22 2016 Nobuyoshi Nakada <nobu@r...> * ext/-test-/memory_status/memory_status.c (read_status): use Index: vm_core.h =================================================================== --- vm_core.h (revision 56377) +++ vm_core.h (revision 56378) @@ -46,7 +46,7 @@ https://github.com/ruby/ruby/blob/trunk/vm_core.h#L46 #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") -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/