diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-01-11 02:42:21 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-01-11 02:44:26 +0100 |
commit | a764049175ea606c6a6bf6045b722d3ac1c25320 (patch) | |
tree | b72f1e3226a9dc98b75b49e8200a6e71086a81fe /crawl-ref/source/debug.h | |
parent | ab77b3191807d995fbf6e3dbd41481d713022942 (diff) | |
download | crawl-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.h | 3 |
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, ...); |