summaryrefslogtreecommitdiff
path: root/lout/debug_rtfl.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2015-01-28 23:42:35 +0100
committerSebastian Geerken <devnull@localhost>2015-01-28 23:42:35 +0100
commitf50adcb255631a1f84f5ba13b74b7eb4ce82b6d4 (patch)
treee8506b82c9cf1b6cfe61fd94b60c114a2e213584 /lout/debug_rtfl.hh
parent365475ead8e88ff9721fe2e39be1ae3563a448da (diff)
Some RTFL.
Diffstat (limited to 'lout/debug_rtfl.hh')
-rw-r--r--lout/debug_rtfl.hh16
1 files changed, 16 insertions, 0 deletions
diff --git a/lout/debug_rtfl.hh b/lout/debug_rtfl.hh
index 7134238c..72a06138 100644
--- a/lout/debug_rtfl.hh
+++ b/lout/debug_rtfl.hh
@@ -183,6 +183,20 @@ inline void rtfl_print (const char *version, const char *file, int line,
#define DBG_OBJ_LEAVE_O(obj) \
RTFL_OBJ_PRINT ("leave", "p", obj);
+#define DBG_OBJ_LEAVE_VAL(fmt, ...) \
+ STMT_START { \
+ char vals[256]; \
+ snprintf (vals, sizeof (vals), fmt, __VA_ARGS__); \
+ RTFL_OBJ_PRINT ("leave", "p:s", this, vals); \
+ } STMT_END
+
+#define DBG_OBJ_LEAVE_VAL_O(obj, fmt, ...) \
+ STMT_START { \
+ char vals[256]; \
+ snprintf (vals, sizeof (vals), fmt, __VA_ARGS__); \
+ RTFL_OBJ_PRINT ("leave", "p:s", obj, vals); \
+ } STMT_END
+
#define DBG_OBJ_CREATE(klass) \
DBG_OBJ_CREATE_O (this, klass)
@@ -343,6 +357,8 @@ inline void rtfl_print (const char *version, const char *file, int line,
#define DBG_OBJ_ENTER_O(aspect, prio, obj, funname, fmt, ...) STMT_NOP
#define DBG_OBJ_LEAVE() STMT_NOP
#define DBG_OBJ_LEAVE_O(obj) STMT_NOP
+#define DBG_OBJ_LEAVE_VAL(fmt, ...) STMT_NOP
+#define DBG_OBJ_LEAVE_VAL_O(obj, fmt, ...) STMT_NOP
#define DBG_OBJ_CREATE(klass) STMT_NOP
#define DBG_OBJ_CREATE_O(obj, klass) STMT_NOP
#define DBG_OBJ_DELETE() STMT_NOP