summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/debug.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-11-01 00:41:42 +0100
committerAdam Borowski <kilobyte@angband.pl>2010-11-01 00:44:36 +0100
commit8c8a9865ea16df63b06a374415fc54bdaf07d787 (patch)
tree1cc7df30e13dde1fcff0c1de2ca38a26a70b1ff2 /crawl-ref/source/debug.h
parent5b1c13fbe968c539ac3221c41b215b569c0db9d7 (diff)
downloadcrawl-ref-8c8a9865ea16df63b06a374415fc54bdaf07d787.tar.gz
crawl-ref-8c8a9865ea16df63b06a374415fc54bdaf07d787.zip
Add a quick and dirty debugging function for where dprf() is of no use.
I use a similar include, but there's no reason to not have this properly as a part of the project -- as others can benefit from it as well. Something like this is needed for times such as debugging the save browser or the text display itself.
Diffstat (limited to 'crawl-ref/source/debug.h')
-rw-r--r--crawl-ref/source/debug.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/debug.h b/crawl-ref/source/debug.h
index 5ee71c114b..e3fea4bc27 100644
--- a/crawl-ref/source/debug.h
+++ b/crawl-ref/source/debug.h
@@ -71,4 +71,7 @@ inline void __DUMMY_TRACE__(...)
#endif
+#ifdef DEBUG
+void debuglog(const char *format, ...);
+#endif
#endif