Add a ASSERT() to the --crash test (only on DEBUG builds) since some people are accidentally releasing debug builds instead of release builds and this will be a quick way to check.

Read http://developer.wz2100.net/wiki/ReleaseChecklist


git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@8245 4a71c877-e1ca-e34f-864e-861f7616d084
master
Buginator 2009-10-10 00:42:42 +00:00 committed by Git SVN Gateway
parent 2ea2c754eb
commit 1899dff4b7
1 changed files with 4 additions and 0 deletions

View File

@ -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;