mirror of https://github.com/OpenRCT2/OpenRCT2.git
Abort if assert is hit in tests
This commit is contained in:
parent
433207dc81
commit
7557d9ca07
|
@ -78,8 +78,11 @@ namespace Guard
|
|||
char *bufend = (char *)strchr(buffer, 0);
|
||||
vsnprintf(bufend, sizeof(buffer) - (bufend - buffer), message, args);
|
||||
}
|
||||
// Only show message box if we are not building for testing
|
||||
#ifndef __TEST__
|
||||
#ifdef __TEST__
|
||||
// Abort if we are building for testing
|
||||
abort();
|
||||
#else
|
||||
// Show message box if we are not building for testing
|
||||
int result = MessageBoxA(nullptr, buffer, OPENRCT2_NAME, MB_ABORTRETRYIGNORE | MB_ICONEXCLAMATION);
|
||||
if (result == IDABORT)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue