Skip to content

Commit

Permalink
DBG_OBJ_COLOR: order of arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Geerken committed Sep 24, 2014
1 parent 28edcbd commit 8e18658
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion lout/debug.hh
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@
fflush (stdout); \
} D_STMT_END

#define DBG_OBJ_COLOR(color, klass) \
#define DBG_OBJ_COLOR(klass, color) \
D_STMT_START { \
printf (RTFL_PREFIX_FMT "obj-color:%s:%s\n", \
RTFL_PREFIX_ARGS, color, klass); \
Expand Down
24 changes: 12 additions & 12 deletions src/dillo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -379,18 +379,18 @@ static DilloUrl *makeStartUrl(char *str, bool local)
*/
int main(int argc, char **argv)
{
DBG_OBJ_COLOR("#c0ff80", "dw::*");
DBG_OBJ_COLOR("#c0c0ff", "dw::fltk::*");
DBG_OBJ_COLOR("#ffa0a0", "dw::core::*");
DBG_OBJ_COLOR("#ffe0a0", "dw::core::style::*");

DBG_OBJ_COLOR ("#80ffa0", "dw::Image");
DBG_OBJ_COLOR ("#f0ff80", "dw::Textblock");
DBG_OBJ_COLOR ("#d0ff80", "dw::OutOfFlowMgr");
DBG_OBJ_COLOR ("#e0ff80", "dw::AlignedTextblock");
DBG_OBJ_COLOR ("#b0ff80", "dw::ListItem");
DBG_OBJ_COLOR ("#80ff80", "dw::TableCell");
DBG_OBJ_COLOR ("#80ffc0", "dw::Table");
DBG_OBJ_COLOR ("dw::*", "#c0ff80");
DBG_OBJ_COLOR ("dw::fltk::*", "#c0c0ff");
DBG_OBJ_COLOR ("dw::core::*", "#ffa0a0");
DBG_OBJ_COLOR ("dw::core::style::*", "#ffe0a0");

DBG_OBJ_COLOR ("dw::Image", "#80ffa0");
DBG_OBJ_COLOR ("dw::Textblock", "#f0ff80");
DBG_OBJ_COLOR ("dw::OutOfFlowMgr", "#d0ff80");
DBG_OBJ_COLOR ("dw::AlignedTextblock", "#e0ff80");
DBG_OBJ_COLOR ("dw::ListItem", "#b0ff80");
DBG_OBJ_COLOR ("dw::TableCell", "#80ff80");
DBG_OBJ_COLOR ("dw::Table", "#80ffc0");

uint_t opt_id;
uint_t options_got = 0;
Expand Down

0 comments on commit 8e18658

Please sign in to comment.