gecko-dev/mfbt/Assertions.cpp
Emanuel Hoogeveen 515f250ac5 Bug 1309573 - Part 1: Define the crash reason in MFBT to let everything use it. r=froydnj
--HG--
extra : rebase_source : 12eda091c0453e067a13a80261b814128d27c45c
2016-11-06 22:57:00 -05:00

18 lines
712 B
C++

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */
#include "mozilla/Types.h"
/*
* The crash reason is defined as a global variable here rather than in the
* crash reporter itself to make it available to all code, even libraries like
* JS that don't link with the crash reporter directly. This value will only
* be consumed if the crash reporter is used by the target application.
*/
MOZ_BEGIN_EXTERN_C
MOZ_EXPORT const char* gMozCrashReason = nullptr;
MOZ_END_EXTERN_C