summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/debug.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-01-11 02:42:21 +0100
committerAdam Borowski <kilobyte@angband.pl>2011-01-11 02:44:26 +0100
commita764049175ea606c6a6bf6045b722d3ac1c25320 (patch)
treeb72f1e3226a9dc98b75b49e8200a6e71086a81fe /crawl-ref/source/debug.h
parentab77b3191807d995fbf6e3dbd41481d713022942 (diff)
downloadcrawl-ref-a764049175ea606c6a6bf6045b722d3ac1c25320.tar.gz
crawl-ref-a764049175ea606c6a6bf6045b722d3ac1c25320.zip
Mention the file and line no in die().
Diffstat (limited to 'crawl-ref/source/debug.h')
-rw-r--r--crawl-ref/source/debug.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/debug.h b/crawl-ref/source/debug.h
index b60bfcc18d..da1f1b425e 100644
--- a/crawl-ref/source/debug.h
+++ b/crawl-ref/source/debug.h
@@ -65,7 +65,8 @@ inline void __DUMMY_TRACE__(...)
#endif
-NORETURN void die(const char *format, ...);
+NORETURN void die(const char *file, int line, const char *format, ...);
+#define die(...) die(__FILE__, __LINE__, __VA_ARGS__)
#ifdef DEBUG
void debuglog(const char *format, ...);