1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-16 11:25:26 +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

@@ -1220,7 +1220,7 @@ void MenuCreator::CreateMenusAndCommands(AudacityProject &project)
mLastFlags = AlwaysEnabledFlag;
#if defined(__WXDEBUG__)
#if defined(_DEBUG)
// c->CheckDups();
#endif
}
@@ -1277,7 +1277,7 @@ void MenuCreator::RebuildMenuBar(AudacityProject &project)
// On OSX, we can't rebuild the menus while a modal dialog is being shown
// since the enabled state for menus like Quit and Preference gets out of
// sync with wxWidgets idea of what it should be.
#if defined(__WXMAC__) && defined(__WXDEBUG__)
#if defined(__WXMAC__) && defined(_DEBUG)
{
wxDialog *dlg =
wxDynamicCast(wxGetTopLevelParent(wxWindow::FindFocus()), wxDialog);