summaryrefslogtreecommitdiff
path: root/src/ast/macro.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast/macro.hpp')
-rw-r--r--src/ast/macro.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ast/macro.hpp b/src/ast/macro.hpp
index 733023ca..85f2dea2 100644
--- a/src/ast/macro.hpp
+++ b/src/ast/macro.hpp
@@ -56,7 +56,10 @@ public:
SERIALISABLE_PROTOTYPES();
friend ::std::ostream& operator<<(::std::ostream& os, const MacroInvocation& x) {
- os << x.m_attrs << x.m_macro_name << "! " << x.m_ident << x.m_input;
+ os << x.m_attrs;
+ if(x.m_attrs.m_items.size() > 0)
+ os << " ";
+ os << x.m_macro_name << "! " << x.m_ident << x.m_input;
return os;
}
};