Commit d6dbfa26 authored by Jürg Billeter's avatar Jürg Billeter

Add parenthesis to macro substitutions where necessary

Based on patch by Yu Feng.
parent 857dc4d8
/* 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 ();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment