memory/mozalloc/mozalloc_abort.h
author Emilio Cobos Álvarez <emilio@crisal.io>
Wed, 10 Apr 2019 12:10:40 +0000
changeset 468778 152985a87c0153550cf118a9e7fcfcd0061ce645
parent 448963 66eb1f485c1a3ea81372758bc92292c9428b17cd
permissions -rw-r--r--
Bug 1542178 - Use ToResolvedValue for computed style serialization. r=heycam Differential Revision: https://phabricator.services.mozilla.com/D26784

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 * vim: sw=2 ts=4 et :
 */
/* 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 mozilla_mozalloc_abort_h
#define mozilla_mozalloc_abort_h

#include "mozilla/Attributes.h"
#include "mozilla/Types.h"

/**
 * Terminate this process in such a way that breakpad is triggered, if
 * at all possible.
 *
 * Note: MOZ_NORETURN seems to break crash stacks on ARM, so we don't
 * use that annotation there.
 */
extern "C" MFBT_API
#if !defined(__arm__)
    MOZ_NORETURN
#endif
    void
    mozalloc_abort(const char* const msg);

#endif /* ifndef mozilla_mozalloc_abort_h */