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-861f7616d084master
parent
2ea2c754eb
commit
1899dff4b7
|
@ -594,6 +594,10 @@ void draw3DScene( void )
|
||||||
if (CauseCrash)
|
if (CauseCrash)
|
||||||
{
|
{
|
||||||
char *crash = 0;
|
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)");
|
debug(LOG_ERROR, "Forcing a segfault! (crash handler test)");
|
||||||
// and here comes the crash
|
// and here comes the crash
|
||||||
*crash = 0x3;
|
*crash = 0x3;
|
||||||
|
|
Loading…
Reference in New Issue