From ae5021f81d213ad529ce96db038af38e4eeb87e0 Mon Sep 17 00:00:00 2001 From: Nikita Zimin Date: Tue, 13 Aug 2024 20:05:03 +0300 Subject: [PATCH] Fix for DebugLog/DebugPrint in PRODUCT mode --- emulator/Common.cpp | 7 ++++++- emulator/Common.h | 4 ---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/emulator/Common.cpp b/emulator/Common.cpp index 061d01e..9e9801b 100644 --- a/emulator/Common.cpp +++ b/emulator/Common.cpp @@ -60,7 +60,12 @@ bool AlertOkCancel(const QString &sMessage) ////////////////////////////////////////////////////////////////////// // DebugPrint and DebugLog -#if !defined(PRODUCT) +#if defined(PRODUCT) +void DebugPrint(const char*) {} +void DebugPrintFormat(const char*, ...) {} +void DebugLog(const char*) {} +void DebugLogFormat(const char*, ...) {} +#else void DebugPrint(const char* message) { diff --git a/emulator/Common.h b/emulator/Common.h index 7700545..95ba143 100644 --- a/emulator/Common.h +++ b/emulator/Common.h @@ -78,15 +78,11 @@ bool AlertOkCancel(const QString &sMessage); ////////////////////////////////////////////////////////////////////// // DebugPrint -#if !defined(PRODUCT) - void DebugPrint(const char* message); void DebugPrintFormat(const char* pszFormat, ...); void DebugLog(const char* message); void DebugLogFormat(const char* pszFormat, ...); -#endif // !defined(PRODUCT) - //////////////////////////////////////////////////////////////////////