diff options
Diffstat (limited to 'src/include/debug.hpp')
| -rw-r--r-- | src/include/debug.hpp | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/src/include/debug.hpp b/src/include/debug.hpp index 11301d27..39af8ab0 100644 --- a/src/include/debug.hpp +++ b/src/include/debug.hpp @@ -34,8 +34,12 @@ class TraceLog  {      const char* m_tag;  public: +    TraceLog(const char* tag, ::std::string info): m_tag(tag) { +        DEBUG(" >> " << m_tag << "(" << info << ")"); +        INDENT(); +    }      TraceLog(const char* tag): m_tag(tag) { -        DEBUG(">> " << m_tag); +        DEBUG(" >> " << m_tag);          INDENT();      }      ~TraceLog() { @@ -44,5 +48,6 @@ public:      }  };  #define TRACE_FUNCTION  TraceLog _tf_(__func__) +#define TRACE_FUNCTION_F(ss)    TraceLog _tf_(__func__, FMT(ss)) | 
