summaryrefslogtreecommitdiff
path: root/rufl_internal.h
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2005-02-27 14:32:41 +0000
committerJames Bursa <james@netsurf-browser.org>2005-02-27 14:32:41 +0000
commit9119e81b1421631d1a6b3dadb89ca33754438cfb (patch)
treec22a455481f49e218b165068f90b18d6e432493a /rufl_internal.h
parent7caf0192182233de4c7524a6c40d914229952dd8 (diff)
downloadlibrufl-9119e81b1421631d1a6b3dadb89ca33754438cfb.tar.gz
librufl-9119e81b1421631d1a6b3dadb89ca33754438cfb.tar.bz2
[project @ 2005-02-27 14:32:41 by bursa]
Logging during init. svn path=/import/rufl/; revision=2453
Diffstat (limited to 'rufl_internal.h')
-rw-r--r--rufl_internal.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/rufl_internal.h b/rufl_internal.h
index 6394722..490554a 100644
--- a/rufl_internal.h
+++ b/rufl_internal.h
@@ -166,3 +166,12 @@ struct rufl_glyph_map_entry {
extern const struct rufl_glyph_map_entry rufl_glyph_map[];
extern const size_t rufl_glyph_map_size;
+
+
+#ifndef NDEBUG
+#define LOG(format, ...) (fprintf(stderr, __FILE__ " %s %i: ", \
+ __PRETTY_FUNCTION__, __LINE__), fprintf(stderr, format, \
+ __VA_ARGS__), fprintf(stderr, "\n"))
+#else
+#define LOG(format, ...)
+#endif