]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Add parenthesis to macro substitutions where necessary
authorJürg Billeter <j@bitron.ch>
Thu, 25 Jun 2009 17:12:34 +0000 (19:12 +0200)
committerJürg Billeter <j@bitron.ch>
Thu, 25 Jun 2009 17:12:34 +0000 (19:12 +0200)
Based on patch by Yu Feng.

ccode/valaccodemacroreplacement.vala

index 1737c2e7c04ee1c56b47c0cc240330d64ebc0727..d865387ecc8791cf251e82bc85521555a5c8874b 100644 (file)
@@ -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 ();
        }