diff options
author | Sebastian Geerken <devnull@localhost> | 2014-01-13 12:19:52 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-01-13 12:19:52 +0100 |
commit | 68981be37390827ac8bfe4b2d6d4cf77126ee833 (patch) | |
tree | d1cdf93d136e71668266f37591fbd214737a2341 /lout | |
parent | 87d8a0771f1481f65df88c7828e57218917c400e (diff) |
Some RTFL stuff, plus a performance fix in Textblock::checkPossibleLineHeightChange.
Diffstat (limited to 'lout')
-rw-r--r-- | lout/debug.hh | 10 |
1 files changed, 10 insertions, 0 deletions
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) |