Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* debug.h: parenthesize macro arguments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
commit 099f52d73d2a0ee2faae355cb5286a79048bda0e 1 parent 6c887c5
akr akr authored
Showing with 8 additions and 4 deletions.
  1. +4 −0 ChangeLog
  2. +4 −4 debug.h
4 ChangeLog
View
@@ -1,3 +1,7 @@
+Mon Jan 17 22:54:33 2011 Tanaka Akira <akr@fsij.org>
+
+ * debug.h: parenthesize macro arguments.
+
Mon Jan 17 21:40:25 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.c (process_options): revert r30549.
8 debug.h
View
@@ -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()
Please sign in to comment.
Something went wrong with that request. Please try again.