diff options
Diffstat (limited to 'src/expand/stringify.cpp')
-rw-r--r-- | src/expand/stringify.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/expand/stringify.cpp b/src/expand/stringify.cpp index 06c65c02..561177ef 100644 --- a/src/expand/stringify.cpp +++ b/src/expand/stringify.cpp @@ -12,7 +12,7 @@ class CExpander: public ExpandProcMacro { - ::std::unique_ptr<TokenStream> expand(const Span& sp, const AST::Crate& crate, const ::std::string& ident, const TokenTree& tt, AST::Module& mod) override + ::std::unique_ptr<TokenStream> expand(const Span& sp, const AST::Crate& crate, const TokenTree& tt, AST::Module& mod) override { Token tok; ::std::string rv; @@ -22,9 +22,13 @@ class CExpander: { if(!rv.empty()) rv += " "; + DEBUG(" += " << tok); rv += tok.to_str(); } + // TODO: Strip out any `{...}` sequences that aren't from nested + // strings. + return box$( TTStreamO(sp, TokenTree(Token(TOK_STRING, mv$(rv)))) ); } }; |