mozalloc_abort.h (767B)
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/Types.h" 12 13 /** 14 * Terminate this process in such a way that breakpad is triggered, if 15 * at all possible. 16 * 17 * Note: [[noreturn]] seems to break crash stacks on ARM, so we don't 18 * use that annotation there. 19 */ 20 extern "C" 21 #if !defined(__arm__) 22 [[noreturn]] 23 #endif 24 MFBT_API void mozalloc_abort(const char* const msg); 25 26 #endif /* ifndef mozilla_mozalloc_abort_h */