summaryrefslogtreecommitdiff
path: root/render/table.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-04-03 22:23:14 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-04-03 22:23:14 +0000
commitff6000745886cb085ca80e42498020497bc7f95f (patch)
tree41439653b4e24185009d6c48c9f8b37b4c93894f /render/table.c
parent2ca6e9a3e6bd7450cd1fb80db3a777956c804e11 (diff)
downloadnetsurf-ff6000745886cb085ca80e42498020497bc7f95f.tar.gz
netsurf-ff6000745886cb085ca80e42498020497bc7f95f.tar.bz2
Fix build with NDEBUG defined
svn path=/trunk/netsurf/; revision=12154
Diffstat (limited to 'render/table.c')
-rw-r--r--render/table.c7
1 files changed, 5 insertions, 2 deletions
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;
}