1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-09 06:06:24 +01:00

Move compile-time testing of crash report support out of Experimental.h

This commit is contained in:
Paul Licameli
2020-06-19 22:47:27 -04:00
parent 83efa5a0df
commit c781a108e3
7 changed files with 23 additions and 37 deletions

View File

@@ -10,7 +10,7 @@
#include "../AudacityLogger.h"
#include "../AudioIOBase.h"
#include "../CommonCommandFlags.h"
#include "../CrashReport.h"
#include "../CrashReport.h" // for HAS_CRASH_REPORT
#include "../FileNames.h"
#include "../HelpText.h"
#include "../Menus.h"
@@ -26,10 +26,6 @@
#include "../widgets/AudacityMessageBox.h"
#include "../widgets/HelpSystem.h"
#if defined(EXPERIMENTAL_CRASH_REPORT)
#include <wx/debugrpt.h>
#endif
// private helper classes and functions
namespace {
@@ -353,7 +349,7 @@ void OnShowLog( const CommandContext &context )
}
}
#if defined(EXPERIMENTAL_CRASH_REPORT)
#if defined(HAS_CRASH_REPORT)
void OnCrashReport(const CommandContext &WXUNUSED(context) )
{
// Change to "1" to test a real crash
@@ -523,7 +519,7 @@ BaseItemSharedPtr HelpMenu()
#endif
Command( wxT("Log"), XXO("Show &Log..."), FN(OnShowLog),
AlwaysEnabledFlag ),
#if defined(EXPERIMENTAL_CRASH_REPORT)
#if defined(HAS_CRASH_REPORT)
Command( wxT("CrashReport"), XXO("&Generate Support Data..."),
FN(OnCrashReport), AlwaysEnabledFlag )
#endif