Debug macro

This commit is contained in:
JackCarterSmith 2024-10-19 19:10:45 +02:00
parent 77cec3bdde
commit 6c44133074
Signed by: JackCarterSmith
GPG Key ID: 832E52F4E23F8F24
2 changed files with 5 additions and 1 deletions

View File

@ -80,7 +80,7 @@ void Logger::PrintCritical(std::string _in, bool writeToFile) {
} }
void Logger::PrintDebug(std::string _in, bool writeToFile) { void Logger::PrintDebug(std::string _in, bool writeToFile) {
#ifdef _DEBUG #ifdef DEBUG
LogConsolePrint(LOG_TYPE_DBG, _in, mLogTimer->GetElapsedTimeS()); LogConsolePrint(LOG_TYPE_DBG, _in, mLogTimer->GetElapsedTimeS());
if (writeToFile) if (writeToFile)
LogFilePrint(LOG_TYPE_DBG, _in, mLogTimer->GetElapsedTimeS()); LogFilePrint(LOG_TYPE_DBG, _in, mLogTimer->GetElapsedTimeS());

View File

@ -24,7 +24,11 @@ int main(int argc, char** argv) {
} }
log.PrintInfo(LOGGER_MSG_FT("Create game instance")); log.PrintInfo(LOGGER_MSG_FT("Create game instance"));
#ifdef DEBUG
Game& arcadeGame = Game::getInstance(mainWindow, true); Game& arcadeGame = Game::getInstance(mainWindow, true);
#else
Game& arcadeGame = Game::getInstance(mainWindow, false);
#endif
GAME_STATUS status = GAME_INIT; GAME_STATUS status = GAME_INIT;
for ( ;; ) { for ( ;; ) {