diff options
Diffstat (limited to 'src/expand/file_line.cpp')
-rw-r--r-- | src/expand/file_line.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/expand/file_line.cpp b/src/expand/file_line.cpp index c3bfc2de..28bd73b7 100644 --- a/src/expand/file_line.cpp +++ b/src/expand/file_line.cpp @@ -6,8 +6,6 @@ class CExpanderFile: public ExpandProcMacro { - bool expand_early() const override { return true; } - ::std::unique_ptr<TokenStream> expand(const Span& sp, const AST::Crate& crate, const ::std::string& ident, const TokenTree& tt, AST::Module& mod) override { return box$( TTStreamO(TokenTree(Token(TOK_STRING, sp.filename.c_str()))) ); @@ -17,8 +15,6 @@ class CExpanderFile: class CExpanderLine: public ExpandProcMacro { - bool expand_early() const override { return true; } - ::std::unique_ptr<TokenStream> expand(const Span& sp, const AST::Crate& crate, const ::std::string& ident, const TokenTree& tt, AST::Module& mod) override { return box$( TTStreamO(TokenTree(Token((uint64_t)sp.start_line, CORETYPE_U32))) ); |