From 6c441330746fe70c0e6a62af984861580d1f04e7 Mon Sep 17 00:00:00 2001 From: JackCarterSmith Date: Sat, 19 Oct 2024 19:10:45 +0200 Subject: [PATCH] Debug macro --- Engine/Misc/Logger.cpp | 2 +- ProtoTank.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Engine/Misc/Logger.cpp b/Engine/Misc/Logger.cpp index c64c072..65ade91 100644 --- a/Engine/Misc/Logger.cpp +++ b/Engine/Misc/Logger.cpp @@ -80,7 +80,7 @@ void Logger::PrintCritical(std::string _in, bool writeToFile) { } void Logger::PrintDebug(std::string _in, bool writeToFile) { -#ifdef _DEBUG +#ifdef DEBUG LogConsolePrint(LOG_TYPE_DBG, _in, mLogTimer->GetElapsedTimeS()); if (writeToFile) LogFilePrint(LOG_TYPE_DBG, _in, mLogTimer->GetElapsedTimeS()); diff --git a/ProtoTank.cpp b/ProtoTank.cpp index a0a1c6c..1867211 100644 --- a/ProtoTank.cpp +++ b/ProtoTank.cpp @@ -24,7 +24,11 @@ int main(int argc, char** argv) { } log.PrintInfo(LOGGER_MSG_FT("Create game instance")); +#ifdef DEBUG Game& arcadeGame = Game::getInstance(mainWindow, true); +#else + Game& arcadeGame = Game::getInstance(mainWindow, false); +#endif GAME_STATUS status = GAME_INIT; for ( ;; ) {