The semantics around whether or not enabling the crash reporter depend on the build type and the value of a couple of environment variables. The logic for this used to live in a couple of places, this patch simply consolidates it in mozglue, in order to use it later on. Differential Revision: https://phabricator.services.mozilla.com/D305184
21 lines
557 B
C++
21 lines
557 B
C++
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef RUNTIMEEXCEPTIONMODULE_H_
|
|
#define RUNTIMEEXCEPTIONMODULE_H_
|
|
|
|
#include "mozilla/Types.h"
|
|
|
|
namespace CrashReporter {
|
|
|
|
MFBT_API void RegisterRuntimeExceptionModule();
|
|
|
|
MFBT_API void UnregisterRuntimeExceptionModule();
|
|
|
|
MFBT_API bool CrashReporterIsEnabled(bool force = false);
|
|
|
|
} // namespace CrashReporter
|
|
|
|
#endif // RUNTIMEEXCEPTIONMODULE_H_
|