Path: blob/main/contrib/llvm-project/libcxx/src/exception.cpp
35147 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#include <exception>9#include <new>10#include <typeinfo>1112#if defined(LIBCXXRT) || defined(LIBCXX_BUILDING_LIBCXXABI)13# include <cxxabi.h>14using namespace __cxxabiv1;15# define HAVE_DEPENDENT_EH_ABI 116#endif1718#if defined(_LIBCPP_ABI_MICROSOFT)19# include "support/runtime/exception_msvc.ipp"20# include "support/runtime/exception_pointer_msvc.ipp"21#elif defined(_LIBCPPABI_VERSION)22# include "support/runtime/exception_libcxxabi.ipp"23# include "support/runtime/exception_pointer_cxxabi.ipp"24#elif defined(LIBCXXRT)25# include "support/runtime/exception_libcxxrt.ipp"26# include "support/runtime/exception_pointer_cxxabi.ipp"27#elif defined(__GLIBCXX__)28# include "support/runtime/exception_glibcxx.ipp"29# include "support/runtime/exception_pointer_glibcxx.ipp"30#else31# include "include/atomic_support.h"32# include "support/runtime/exception_fallback.ipp"33# include "support/runtime/exception_pointer_unimplemented.ipp"34#endif353637