summaryrefslogtreecommitdiff
path: root/src/parse/common.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2015-03-08 16:14:15 +0800
committerJohn Hodge <tpg@mutabah.net>2015-03-08 16:14:15 +0800
commit0ab6d527125669ca7a36e5b27ff429c0f402ba77 (patch)
tree1c7e14e452d563ebbe95acf39f2a7364a3c2d48b /src/parse/common.hpp
parentfcec09900f158aa939eb1c96607aaabf4c8171ef (diff)
downloadmrust-0ab6d527125669ca7a36e5b27ff429c0f402ba77.tar.gz
Macro parsing, saving, and evaluating
Diffstat (limited to 'src/parse/common.hpp')
-rw-r--r--src/parse/common.hpp23
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