Files
sousa-gecko/mozglue/misc/RuntimeExceptionModule.h
Simon Chopin 426da893a5 Bug 2040673 - Centralize crash reporter enablement semantics r=gsvelto
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
2026-07-02 07:41:59 +00:00

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_