summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/debug.h
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-05-29 12:39:03 -0400
committerNeil Moore <neil@s-z.org>2014-05-29 12:39:03 -0400
commit7958666ef717dc3c7821e2f335bb1c5bd296a28a (patch)
tree9d57718f22b4ae3e4f9903c2e81435697c5544e6 /crawl-ref/source/debug.h
parent5eabb2b48608fa54d9d920474504d87f781cea81 (diff)
downloadcrawl-ref-7958666ef717dc3c7821e2f335bb1c5bd296a28a.tar.gz
crawl-ref-7958666ef717dc3c7821e2f335bb1c5bd296a28a.zip
Move ASSERT_IN_BOUNDS to coord.h
Since its expansion called in_bounds().
Diffstat (limited to 'crawl-ref/source/debug.h')
-rw-r--r--crawl-ref/source/debug.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/crawl-ref/source/debug.h b/crawl-ref/source/debug.h
index 44705b32d6..39391289a7 100644
--- a/crawl-ref/source/debug.h
+++ b/crawl-ref/source/debug.h
@@ -99,20 +99,11 @@ NORETURN void AssertFailed(const char *expr, const char *file, int line,
WARN_POP \
} while (false)
-#define ASSERT_IN_BOUNDS(where) \
- ASSERTM(in_bounds(where), "%s = (%d,%d)", #where, (where).x, (where).y)
-
-#define ASSERT_IN_BOUNDS_OR_ORIGIN(where) \
- ASSERTM(in_bounds(where) || (where).origin(), \
- "%s = (%d,%d)", #where, (where).x, (where).y)
-
#else
#define ASSERT(p) ((void) 0)
#define ASSERTM(p, text,...) ((void) 0)
#define ASSERT_RANGE(x, a, b) ((void) 0)
-#define ASSERT_IN_BOUNDS(where) ((void) 0)
-#define ASSERT_IN_BOUNDS_OR_ORIGIN(where) ((void) 0)
#endif