diff options
author | John Hodge <tpg@mutabah.net> | 2015-03-08 16:14:15 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2015-03-08 16:14:15 +0800 |
commit | 0ab6d527125669ca7a36e5b27ff429c0f402ba77 (patch) | |
tree | 1c7e14e452d563ebbe95acf39f2a7364a3c2d48b /src/parse/common.hpp | |
parent | fcec09900f158aa939eb1c96607aaabf4c8171ef (diff) | |
download | mrust-0ab6d527125669ca7a36e5b27ff429c0f402ba77.tar.gz |
Macro parsing, saving, and evaluating
Diffstat (limited to 'src/parse/common.hpp')
-rw-r--r-- | src/parse/common.hpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/parse/common.hpp b/src/parse/common.hpp index 950a204d..38ef3c96 100644 --- a/src/parse/common.hpp +++ b/src/parse/common.hpp @@ -24,27 +24,4 @@ extern TypeRef Parse_Type(TokenStream& lex); extern AST::Expr Parse_Expr(TokenStream& lex, bool const_only);
extern AST::Expr Parse_ExprBlock(TokenStream& lex);
-class TraceLog
-{
- static unsigned int depth;
- const char* m_tag;
-public:
- TraceLog(const char* tag): m_tag(tag) { indent(); ::std::cout << ">> " << m_tag << ::std::endl; }
- ~TraceLog() { outdent(); ::std::cout << "<< " << m_tag << ::std::endl; }
-private:
- void indent()
- {
- for(unsigned int i = 0; i < depth; i ++)
- ::std::cout << " ";
- depth ++;
- }
- void outdent()
- {
- depth --;
- for(unsigned int i = 0; i < depth; i ++)
- ::std::cout << " ";
- }
-};
-#define TRACE_FUNCTION TraceLog _tf_(__func__)
-
#endif // PARSE_COMMON_HPP_INCLUDED
|