summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/debug.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-04-14 00:54:38 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-04-14 00:54:38 +0200
commit64c133e5dc209f5126ca46b8aba4b7307cc45aef (patch)
tree33e6c553edfc5e5cb947a840d6ada61b7f912912 /crawl-ref/source/debug.h
parent70afa706fbb8ccdc59c6c4c32c50776800076354 (diff)
downloadcrawl-ref-64c133e5dc209f5126ca46b8aba4b7307cc45aef.tar.gz
crawl-ref-64c133e5dc209f5126ca46b8aba4b7307cc45aef.zip
Remove the now-unused code for emergency saves.
If we want them back for assertions, it'd be far better to save _before_ going into the crash handler.
Diffstat (limited to 'crawl-ref/source/debug.h')
-rw-r--r--crawl-ref/source/debug.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/crawl-ref/source/debug.h b/crawl-ref/source/debug.h
index b82fb152fa..7391d13b0b 100644
--- a/crawl-ref/source/debug.h
+++ b/crawl-ref/source/debug.h
@@ -38,16 +38,11 @@
#ifdef ASSERTS
-NORETURN void AssertFailed(const char *expr, const char *file, int line, bool save_game);
+NORETURN void AssertFailed(const char *expr, const char *file, int line);
-#define ASSERT_SAVE(p) \
- do { \
- if (!(p)) AssertFailed(#p, __FILE__, __LINE__, true); \
- } while (false)
-
-#define ASSERT(p) \
- do { \
- if (!(p)) AssertFailed(#p, __FILE__, __LINE__, false); \
+#define ASSERT(p) \
+ do { \
+ if (!(p)) AssertFailed(#p, __FILE__, __LINE__); \
} while (false)
#define VERIFY(p) ASSERT(p)