From d8ad8eb5d50af9198a3529f42ef0f4bf179c16c4 Mon Sep 17 00:00:00 2001 From: James R Date: Sun, 19 Feb 2023 22:02:37 -0800 Subject: [PATCH] Enable seg fault on I_Error ifdef DEVELOP This produces a backtrace for I_Errors. --- src/sdl/i_system.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index 352313071..9362a540b 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -1891,8 +1891,8 @@ void I_Error(const char *error, ...) W_Shutdown(); -#if defined (PARANOIA) && defined (__CYGWIN__) - *(INT32 *)2 = 4; //Alam: Debug! +#if defined (PARANOIA) || defined (DEVELOP) + *(INT32 *)0 = 4; //Alam: Debug! #endif exit(-1);