From 3ebea363b19e933df06faf7c1d1ad5d4251c2ca3 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 17 Mar 2015 21:49:49 +0800 Subject: Rework handling of blocks, add sub-modules --- src/include/debug.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/include') 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)) -- cgit v1.2.3