From a77234233bd8b372d3e2f4d245f9db97e2c5807d Mon Sep 17 00:00:00 2001 From: James R Date: Tue, 14 Feb 2023 04:07:47 -0800 Subject: [PATCH] doomdef.h: enable most debugging ifndef NDEBUG --- src/doomdef.h | 8 ++++++++ src/z_zone.h | 1 + 2 files changed, 9 insertions(+) diff --git a/src/doomdef.h b/src/doomdef.h index 5318ee3e7..be24fefda 100644 --- a/src/doomdef.h +++ b/src/doomdef.h @@ -103,6 +103,14 @@ extern "C" { //#define NOMD5 +// If you don't disable ALL debug first, you get ALL debug enabled +#if !defined (NDEBUG) +#define PACKETDROP +#define PARANOIA +#define RANGECHECK +#define ZDEBUG +#endif + // Uncheck this to compile debugging code //#define RANGECHECK //#ifndef PARANOIA diff --git a/src/z_zone.h b/src/z_zone.h index d45fde9b3..5132c0d55 100644 --- a/src/z_zone.h +++ b/src/z_zone.h @@ -15,6 +15,7 @@ #define __Z_ZONE__ #include +#include "doomdef.h" #include "doomtype.h" #ifdef __cplusplus