diff options
author | Sebastian Geerken <devnull@localhost> | 2016-04-03 11:10:26 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2016-04-03 11:10:26 +0200 |
commit | 0f7e7cd2e4d43343b6cdfafaef024a3037f389ef (patch) | |
tree | b7b7ff858d26a1a04c57a1928de87f9593a34f96 /dw/textblock.hh | |
parent | 39534a46edef08b4a9e03dce5e65d8f4132e6b8d (diff) |
WidgetReference: more RTFL.
Diffstat (limited to 'dw/textblock.hh')
-rw-r--r-- | dw/textblock.hh | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/dw/textblock.hh b/dw/textblock.hh index faf65d0a..2c13e2c8 100644 --- a/dw/textblock.hh +++ b/dw/textblock.hh @@ -927,10 +927,11 @@ public: } D_STMT_END #ifdef DBG_RTFL -#define DBG_OBJ_ARRATTRSET_PTR_NUM(var, ind, attr, val1, val2) \ - RTFL_OBJ_PRINT ("set", "p:s.d.s:p (d)", this, var, ind, attr, val1, val2) +#define DBG_OBJ_ARRATTRSET_WREF(var, ind, attr, wref) \ + RTFL_OBJ_PRINT ("set", "p:s.d.s:p (p, d)", this, var, ind, attr, wref, \ + wref->widget, wref->parentRef) #else -#define DBG_OBJ_ARRATTRSET_PTR_NUM(var, ind, attr, val1, val2) STMT_NOP +#define DBG_OBJ_ARRATTRSET_WREF(var, ind, attr, wref) STMT_NOP #endif #define DBG_SET_WORD(n) \ @@ -950,12 +951,9 @@ public: break; \ case ::dw::core::Content::WIDGET_OOF_REF: \ DBG_OBJ_ARRATTRSET_SYM ("words", n, "type", "WIDGET_OOF_REF"); \ - DBG_OBJ_ARRATTRSET_PTR_NUM ("words", n, \ - "text/widget/widgetReference/breakSpace", \ - words->getRef(n) \ - ->content.widgetReference->widget, \ - words->getRef(n) \ - ->content.widgetReference->parentRef); \ + DBG_OBJ_ARRATTRSET_WREF ("words", n, \ + "text/widget/widgetReference/breakSpace", \ + words->getRef(n)->content.widgetReference); \ break; \ case ::dw::core::Content::BREAK: \ DBG_OBJ_ARRATTRSET_SYM ("words", n, "type", "BREAK"); \ @@ -999,7 +997,8 @@ public: break; \ case ::dw::core::Content::WIDGET_OOF_REF: \ DBG_OBJ_MSGF (aspect, prio, \ - prefix "WIDGET_OOF_REF / %p (%d)" suffix,\ + prefix "WIDGET_OOF_REF / %p (%p, %d)" suffix,\ + words->getRef(n)->content.widgetReference, \ words->getRef(n)->content.widgetReference->widget, \ words->getRef(n)->content.widgetReference \ ->parentRef); \ |