summaryrefslogtreecommitdiff
path: root/ccode
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2009-06-25 19:12:34 +0200
committerJürg Billeter <j@bitron.ch>2009-06-25 19:12:34 +0200
commitd6dbfa265da427618cac87365cdf0a39f01c3f0c (patch)
tree486349404849c92d72b723a0a04f3e74ab397bcb /ccode
parent857dc4d8f2651fa9a6a1f810725e87afd49f6ec7 (diff)
downloadvala-d6dbfa265da427618cac87365cdf0a39f01c3f0c.tar.gz
Add parenthesis to macro substitutions where necessary
Based on patch by Yu Feng.
Diffstat (limited to 'ccode')
-rw-r--r--ccode/valaccodemacroreplacement.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/ccode/valaccodemacroreplacement.vala b/ccode/valaccodemacroreplacement.vala
index 1737c2e7c..d865387ec 100644
--- a/ccode/valaccodemacroreplacement.vala
+++ b/ccode/valaccodemacroreplacement.vala
@@ -1,6 +1,6 @@
/* valaccodemacroreplacement.vala
*
- * Copyright (C) 2006-2007 Jürg Billeter
+ * Copyright (C) 2006-2009 Jürg Billeter
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -59,7 +59,7 @@ public class Vala.CCodeMacroReplacement : CCodeNode {
if (replacement != null) {
writer.write_string (replacement);
} else {
- replacement_expression.write (writer);
+ replacement_expression.write_inner (writer);
}
writer.write_newline ();
}