From 68981be37390827ac8bfe4b2d6d4cf77126ee833 Mon Sep 17 00:00:00 2001 From: Sebastian Geerken Date: Mon, 13 Jan 2014 12:19:52 +0100 Subject: Some RTFL stuff, plus a performance fix in Textblock::checkPossibleLineHeightChange. --- lout/debug.hh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lout/debug.hh') diff --git a/lout/debug.hh b/lout/debug.hh index f78012f5..98823b52 100644 --- a/lout/debug.hh +++ b/lout/debug.hh @@ -57,6 +57,15 @@ fflush (stdout); \ } D_STMT_END +// Variant which does not use "this", but an explicitly passed +// object. Should be applied to other macros. (Also, for use in C.) +#define DBG_OBJ_MSGF_O(aspect, prio, obj, fmt, ...) \ + D_STMT_START { \ + printf (RTFL_PREFIX_FMT "obj-msg:%p:%s:%d:" fmt "\n", \ + RTFL_PREFIX_ARGS, obj, aspect, prio, __VA_ARGS__); \ + fflush (stdout); \ + } D_STMT_END + #define DBG_OBJ_MSG_START() \ D_STMT_START { \ printf (RTFL_PREFIX_FMT "obj-msg-start:%p\n", \ @@ -180,6 +189,7 @@ #define DBG_OBJ_MSG(aspect, prio, msg) #define DBG_OBJ_MSGF(aspect, prio, fmt, ...) +#define DBG_OBJ_MSGF_O(aspect, prio, obj, fmt, ...) #define DBG_OBJ_MSG_START(obj) #define DBG_OBJ_MSG_END(obj) #define DBG_OBJ_CREATE(klass) -- cgit v1.2.3