From ff6000745886cb085ca80e42498020497bc7f95f Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 3 Apr 2011 22:23:14 +0000 Subject: Fix build with NDEBUG defined svn path=/trunk/netsurf/; revision=12154 --- render/table.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'render/table.c') diff --git a/render/table.c b/render/table.c index ad7e3bd3c..f9bac2ac8 100644 --- a/render/table.c +++ b/render/table.c @@ -26,11 +26,12 @@ #include "css/utils.h" #include "render/box.h" #include "render/table.h" -#define NDEBUG #include "utils/log.h" -#undef NDEBUG #include "utils/talloc.h" +/* Define to enable verbose table debug */ +#undef TABLE_DEBUG + /** * Container for border values during table border calculations */ @@ -214,11 +215,13 @@ bool table_calculate_column_types(struct box *table) col[i].type = COLUMN_WIDTH_AUTO; } +#ifdef TABLE_DEBUG for (i = 0; i != table->columns; i++) LOG(("table %p, column %u: type %s, width %i", table, i, ((const char *[]) {"UNKNOWN", "FIXED", "AUTO", "PERCENT", "RELATIVE"})[col[i].type], col[i].width)); +#endif return true; } -- cgit v1.2.3