From ff4449638e9c60aab226238352df9dbefd1853e4 Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 25 Jun 2019 11:29:34 +0000 Subject: [PATCH] Use #if DEBUGGINGAIDS>=2 for the assertions in the structure trackers git-svn-id: https://svn.eduke32.com/eduke32@7711 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/include/build.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/build/include/build.h b/source/build/include/build.h index c13ef89eb..22edff260 100644 --- a/source/build/include/build.h +++ b/source/build/include/build.h @@ -642,7 +642,7 @@ static FORCE_INLINE void sector_tracker_hook__(intptr_t const address) { intptr_t const sectnum = (address - (intptr_t)sector) / sizeof(sectortype); -#if DEBUGGINGAIDS +#if DEBUGGINGAIDS>=2 Bassert((unsigned)sectnum < ((MAXSECTORS + M32_FIXME_SECTORS))); #endif @@ -653,7 +653,7 @@ static FORCE_INLINE void wall_tracker_hook__(intptr_t const address) { intptr_t const wallnum = (address - (intptr_t)wall) / sizeof(walltype); -#if DEBUGGINGAIDS +#if DEBUGGINGAIDS>=2 Bassert((unsigned)wallnum < ((MAXWALLS + M32_FIXME_WALLS))); #endif @@ -664,7 +664,7 @@ static FORCE_INLINE void sprite_tracker_hook__(intptr_t const address) { intptr_t const spritenum = (address - (intptr_t)sprite) / sizeof(spritetype); -#if DEBUGGINGAIDS +#if DEBUGGINGAIDS>=2 Bassert((unsigned)spritenum < MAXSPRITES); #endif