diff --git a/src/display3d.c b/src/display3d.c index 57d3a40ab..6893fc2e5 100644 --- a/src/display3d.c +++ b/src/display3d.c @@ -594,6 +594,10 @@ void draw3DScene( void ) if (CauseCrash) { char *crash = 0; +#ifdef DEBUG + ASSERT(false, "Yes, this is a assert. This should not happen on release builds! Use --noassert to bypass in debug builds."); + debug(LOG_WARNING, " *** Warning! You have compiled in debug mode! ***"); +#endif debug(LOG_ERROR, "Forcing a segfault! (crash handler test)"); // and here comes the crash *crash = 0x3;