aboutsummaryrefslogtreecommitdiff
path: root/lout
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-12-26 23:49:41 +0100
committerSebastian Geerken <devnull@localhost>2014-12-26 23:49:41 +0100
commite705d0fa68041490d485cdc5b390ccf80e771722 (patch)
tree79dec6d5f834144914c19879f49babaa314d1c63 /lout
parent806a0bdfe4c8199d6b8b684e53d84d4723e775be (diff)
Minor changes (no actual code).
Diffstat (limited to 'lout')
-rw-r--r--lout/debug_rtfl.hh24
1 files changed, 24 insertions, 0 deletions
diff --git a/lout/debug_rtfl.hh b/lout/debug_rtfl.hh
index 7a93b5ce..7134238c 100644
--- a/lout/debug_rtfl.hh
+++ b/lout/debug_rtfl.hh
@@ -123,6 +123,26 @@ inline void rtfl_print (const char *version, const char *file, int line,
DBG_OBJ_MSG_O (aspect, prio, obj, msg); \
} STMT_END
+#define DBG_OBJ_MARK(aspect, prio, mark) \
+ DBG_OBJ_MARK_O (aspect, prio, this, mark)
+
+#define DBG_OBJ_MARK_O(aspect, prio, obj, mark) \
+ RTFL_OBJ_PRINT ("mark", "p:s:d:s", obj, aspect, prio, mark)
+
+#define DBG_OBJ_MARKF(aspect, prio, fmt, ...) \
+ STMT_START { \
+ char mark[256]; \
+ snprintf (mark, sizeof (mark), fmt, __VA_ARGS__); \
+ DBG_OBJ_MARK (aspect, prio, mark); \
+ } STMT_END
+
+#define DBG_OBJ_MARKF_O(aspect, prio, obj, fmt, ...) \
+ STMT_START { \
+ char mark[256]; \
+ snprintf (mark, sizeof (mark), fmt, __VA_ARGS__); \
+ DBG_OBJ_MARK_O (aspect, prio, obj, mark); \
+ } STMT_END
+
#define DBG_OBJ_MSG_START() \
DBG_OBJ_MSG_START_O (this)
@@ -309,6 +329,10 @@ inline void rtfl_print (const char *version, const char *file, int line,
#define DBG_OBJ_MSG_O(aspect, prio, obj, msg) STMT_NOP
#define DBG_OBJ_MSGF(aspect, prio, fmt, ...) STMT_NOP
#define DBG_OBJ_MSGF_O(aspect, prio, obj, fmt, ...) STMT_NOP
+#define DBG_OBJ_MARK(aspect, prio, mark) STMT_NOP
+#define DBG_OBJ_MARK_O(aspect, prio, obj, mark) STMT_NOP
+#define DBG_OBJ_MARKF(aspect, prio, fmt, ...) STMT_NOP
+#define DBG_OBJ_MARKF_O(aspect, prio, obj, fmt, ...) STMT_NOP
#define DBG_OBJ_MSG_START() STMT_NOP
#define DBG_OBJ_MSG_START_O(obj) STMT_NOP
#define DBG_OBJ_MSG_END() STMT_NOP