Hide macro replacement

This commit is contained in:
Jonathan Müller 2017-07-17 16:24:21 +02:00
commit 38dd1c9d18
3 changed files with 11 additions and 2 deletions

View file

@ -92,7 +92,7 @@ namespace
output << preprocessor_token("(") << bracket_ws
<< preprocessor_token(def.parameters().value()) << bracket_ws
<< preprocessor_token(")");
if (!def.replacement().empty())
if (!def.replacement().empty() && !output.options().is_set(code_generator::declaration))
output << whitespace << preprocessor_token(def.replacement()) << newl;
else
output << newl;