1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 17:30:17 +01:00

Convert all __WXDEBUG__ tests to use new _DEBUG symbol

This symbol is based on the NDEBUG symbol that's automatically
defined by CMake.
This commit is contained in:
Leland Lucius
2020-04-25 02:36:27 -05:00
parent ef28b9214b
commit 1ca911ed38
12 changed files with 22 additions and 16 deletions

View File

@@ -726,7 +726,7 @@ CommandListEntry *CommandManager::NewIdentifier(const CommandID & nameIn,
CommandListEntry *entry = &*mCommandList.back();
mCommandNumericIDHash[entry->id] = entry;
#if defined(__WXDEBUG__)
#if defined(_DEBUG)
prev = mCommandNameHash[entry->name];
if (prev) {
// Under Linux it looks as if we may ask for a newID for the same command
@@ -1476,7 +1476,7 @@ void CommandManager::SetCommandFlags(const CommandID &name,
entry->flags = flags;
}
#if defined(__WXDEBUG__)
#if defined(_DEBUG)
void CommandManager::CheckDups()
{
int cnt = mCommandList.size();

View File

@@ -286,7 +286,7 @@ class AUDACITY_DLL_API CommandManager final
bool GetEnabled(const CommandID &name);
int GetNumberOfKeysRead() const;
#if defined(__WXDEBUG__)
#if defined(_DEBUG)
void CheckDups();
#endif
void RemoveDuplicateShortcuts();