diff options
author | Neil Moore <neil@s-z.org> | 2014-05-29 12:39:03 -0400 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2014-05-29 12:39:03 -0400 |
commit | 7958666ef717dc3c7821e2f335bb1c5bd296a28a (patch) | |
tree | 9d57718f22b4ae3e4f9903c2e81435697c5544e6 /crawl-ref/source/debug.h | |
parent | 5eabb2b48608fa54d9d920474504d87f781cea81 (diff) | |
download | crawl-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.h | 9 |
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 |