Skip to content

Commit

Permalink
Fix for DebugLog/DebugPrint in PRODUCT mode
Browse files Browse the repository at this point in the history
  • Loading branch information
nzeemin committed Aug 13, 2024
1 parent 68169d8 commit ae5021f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 6 additions & 1 deletion emulator/Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
4 changes: 0 additions & 4 deletions emulator/Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)


//////////////////////////////////////////////////////////////////////

Expand Down

0 comments on commit ae5021f

Please sign in to comment.