ruby-changes:18559
From: akr <ko1@a...>
Date: Mon, 17 Jan 2011 22:55:03 +0900 (JST)
Subject: [ruby-changes:18559] Ruby:r30582 (trunk): * debug.h: parenthesize macro arguments.
akr 2011-01-17 22:54:54 +0900 (Mon, 17 Jan 2011) New Revision: 30582 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30582 Log: * debug.h: parenthesize macro arguments. Modified files: trunk/ChangeLog trunk/debug.h Index: debug.h =================================================================== --- debug.h (revision 30581) +++ debug.h (revision 30582) @@ -19,10 +19,10 @@ #pragma GCC visibility push(default) #endif -#define dpv(h,v) ruby_debug_print_value(-1, 0, h, v) -#define dp(v) ruby_debug_print_value(-1, 0, "", v) -#define dpi(i) ruby_debug_print_id(-1, 0, "", i) -#define dpn(n) ruby_debug_print_node(-1, 0, "", n) +#define dpv(h,v) ruby_debug_print_value(-1, 0, (h), (v)) +#define dp(v) ruby_debug_print_value(-1, 0, "", (v)) +#define dpi(i) ruby_debug_print_id(-1, 0, "", (i)) +#define dpn(n) ruby_debug_print_node(-1, 0, "", (n)) #define bp() ruby_debug_breakpoint() Index: ChangeLog =================================================================== --- ChangeLog (revision 30581) +++ ChangeLog (revision 30582) @@ -1,3 +1,7 @@ +Mon Jan 17 22:54:33 2011 Tanaka Akira <akr@f...> + + * debug.h: parenthesize macro arguments. + Mon Jan 17 21:40:25 2011 Nobuyoshi Nakada <nobu@r...> * ruby.c (process_options): revert r30549. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/