/* -*- 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/. */
# include <stdio.h> // snprintf # include <string.h> // strerror
// For gcc, we define these inline to abort so that we're absolutely // certain that (i) no exceptions are thrown from Gecko; (ii) these // errors are always terminal and caught by breakpad.
# include "mozilla/mozalloc_abort.h"
// libc++ 4.0.0 and higher use C++11 [[noreturn]] attributes for the functions // below, and since clang does not allow mixing __attribute__((noreturn)) and // [[noreturn]], we have to explicitly use the latter here. See bug 1329520. # ifdefined(__clang__) # if __has_feature(cxx_attributes) && defined(_LIBCPP_VERSION) && \
_LIBCPP_VERSION >= 4000 # define MOZ_THROW_NORETURN [[noreturn]] # endif # endif # ifndef MOZ_THROW_NORETURN # define MOZ_THROW_NORETURN MOZ_NORETURN # endif
// MinGW doesn't appropriately inline these functions in debug builds, // so we need to do some extra coercion for it to do so. Bug 1332747 # ifdef __MINGW32__ # define MOZ_THROW_INLINE MOZ_ALWAYS_INLINE_EVEN_DEBUG # define MOZ_THROW_EXPORT # else # define MOZ_THROW_INLINE MOZ_ALWAYS_INLINE # define MOZ_THROW_EXPORT MOZ_EXPORT # endif
namespace std {
// NB: user code is not supposed to touch the std:: namespace. We're // doing this after careful review because we want to define our own // exception throwing semantics. Don't try this at home!
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.13Bemerkung:
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.