Debug macro
This commit is contained in:
parent
77cec3bdde
commit
6c44133074
@ -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());
|
||||||
|
@ -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 ( ;; ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user