diff options
author | John Hodge <tpg@mutabah.net> | 2016-04-02 12:32:36 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-04-02 12:32:36 +0800 |
commit | 3ac89867ceb4474c3be9794348d7bd5183305cfb (patch) | |
tree | a9a1b4631c015c3d492643955ba1c7a5cbe183d0 /src/ast/macro.hpp | |
parent | 23b9d62d2adf8eb272aea3ce7ca63380873931fc (diff) | |
download | mrust-3ac89867ceb4474c3be9794348d7bd5183305cfb.tar.gz |
Expand - Handle attributes on module-level macro invocations
Diffstat (limited to 'src/ast/macro.hpp')
-rw-r--r-- | src/ast/macro.hpp | 5 |
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; } }; |