From 2bcf32e2cfe9ecdd12e902011a8e083e39d205ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Fri, 30 Dec 2022 08:12:12 +0100 Subject: [PATCH] Stop relying on _DEBUG --- src/PowderToySDL.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PowderToySDL.cpp b/src/PowderToySDL.cpp index b9bb1f3cc..113581756 100644 --- a/src/PowderToySDL.cpp +++ b/src/PowderToySDL.cpp @@ -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) {