Stop relying on _DEBUG

This commit is contained in:
Tamás Bálint Misius 2022-12-30 08:12:12 +01:00
parent 4907b84a84
commit 2bcf32e2cf
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -710,7 +710,7 @@ int GuessBestScale()
int main(int argc, char * argv[])
{
#if defined(_DEBUG) && defined(_MSC_VER)
#if defined(DEBUG) && defined(_MSC_VER)
_CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_DEBUG);
#endif
currentWidth = WINDOWW;
@ -865,7 +865,7 @@ int main(int argc, char * argv[])
engine->Begin(WINDOWW, WINDOWH);
engine->SetFastQuit(Client::Ref().GetPrefBool("FastQuit", true));
#if !defined(DEBUG) && !defined(_DEBUG)
#if !defined(DEBUG)
//Get ready to catch any dodgy errors
signal(SIGSEGV, SigHandler);
signal(SIGFPE, SigHandler);
@ -881,7 +881,7 @@ int main(int argc, char * argv[])
#endif
GameController * gameController = NULL;
#if !defined(DEBUG) && !defined(_DEBUG)
#if !defined(DEBUG)
try {
#endif
@ -971,7 +971,7 @@ int main(int argc, char * argv[])
EngineProcess();
SaveWindowPosition();
#if !defined(DEBUG) && !defined(_DEBUG)
#if !defined(DEBUG)
}
catch(std::exception& e)
{