Path: blob/main/system/lib/libcxx/src/exception.cpp
6175 views
//===----------------------------------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#define _LIBCPP_ENABLE_CXX20_REMOVED_UNCAUGHT_EXCEPTION9#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS1011#include <exception>12#include <new>13#include <typeinfo>1415#if defined(LIBCXXRT) || defined(LIBCXX_BUILDING_LIBCXXABI)16# include <cxxabi.h>17using namespace __cxxabiv1;18# define HAVE_DEPENDENT_EH_ABI 119#endif2021#if defined(_LIBCPP_ABI_MICROSOFT)22# include "support/runtime/exception_msvc.ipp"23# include "support/runtime/exception_pointer_msvc.ipp"24#elif defined(_LIBCPPABI_VERSION)25# include "support/runtime/exception_libcxxabi.ipp"26# include "support/runtime/exception_pointer_cxxabi.ipp"27#elif defined(LIBCXXRT)28# include "support/runtime/exception_libcxxrt.ipp"29# include "support/runtime/exception_pointer_cxxabi.ipp"30#elif defined(__GLIBCXX__)31# include "support/runtime/exception_glibcxx.ipp"32# include "support/runtime/exception_pointer_glibcxx.ipp"33#else34# include "include/atomic_support.h"35# include "support/runtime/exception_fallback.ipp"36# include "support/runtime/exception_pointer_unimplemented.ipp"37#endif383940