aboutsummaryrefslogtreecommitdiff
path: root/libcxx/src/exception.cpp
blob: 9932141006591338626cba60ba10a70d42de33e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#define _LIBCPP_ENABLE_CXX20_REMOVED_UNCAUGHT_EXCEPTION
#define _LIBCPP_DISABLE_DEPRECATION_WARNINGS

#include <__config>

#if defined(_LIBCPP_ABI_MICROSOFT)
#  include "support/runtime/exception_msvc.ipp"
#  include "support/runtime/exception_pointer_msvc.ipp"
#elif defined(LIBCXX_BUILDING_LIBCXXABI)
#  include "support/runtime/exception_libcxxabi.ipp"
#  include "support/runtime/exception_pointer_cxxabi.ipp"
#elif defined(LIBCXXRT)
#  include "support/runtime/exception_libcxxrt.ipp"
#  include "support/runtime/exception_pointer_cxxabi.ipp"
#elif defined(__GLIBCXX__)
#  include "support/runtime/exception_glibcxx.ipp"
#  include "support/runtime/exception_pointer_glibcxx.ipp"
#else
#  include "include/atomic_support.h"
#  include "support/runtime/exception_fallback.ipp"
#  include "support/runtime/exception_pointer_unimplemented.ipp"
#endif