Debian Codegraph @

memory/mozalloc/mozalloc_abort.h

raw
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim: sw=2 ts=4 et :
3 */
4 /* This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7
8 #ifndef mozilla_mozalloc_abort_h
9 #define mozilla_mozalloc_abort_h
10
11 #include "mozilla/Attributes.h"
12 #include "mozilla/Types.h"
13
14 /**
15 * Terminate this process in such a way that breakpad is triggered, if
16 * at all possible.
17 *
18 * Note: MOZ_NORETURN seems to break crash stacks on ARM, so we don't
19 * use that annotation there.
20 */
21 extern "C" MFBT_API
22 #if !defined(__arm__)
23 MOZ_NORETURN
24 #endif
25 void
26 mozalloc_abort(const char* const msg);
27
28 #endif /* ifndef mozilla_mozalloc_abort_h */