Changeset View
Changeset View
Standalone View
Standalone View
libcxx/src/exception.cpp
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
// | // | ||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||||
// See https://llvm.org/LICENSE.txt for license information. | // See https://llvm.org/LICENSE.txt for license information. | ||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||||
// | // | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
#define _LIBCPP_EXCEPTION_PTR_GNU_INLINE /*empty*/ | |||||
#include <exception> | #include <exception> | ||||
philnik: Why do you guard the macro definition here? Could you add a short comment here why you are… | |||||
I think this was wrong; the macro definition can be unguarded and we unfortunately need more preprocessor guards in the exception header, because the glibcxx ABI doesn't have __incr/decr_refcount()... fwolff: I think this was wrong; the macro definition can be unguarded and we unfortunately need more… | |||||
#include <new> | #include <new> | ||||
#include <typeinfo> | #include <typeinfo> | ||||
#if defined(LIBCXXRT) || defined(LIBCXX_BUILDING_LIBCXXABI) | #if defined(LIBCXXRT) || defined(LIBCXX_BUILDING_LIBCXXABI) | ||||
#include <cxxabi.h> | #include <cxxabi.h> | ||||
using namespace __cxxabiv1; | using namespace __cxxabiv1; | ||||
#define HAVE_DEPENDENT_EH_ABI 1 | #define HAVE_DEPENDENT_EH_ABI 1 | ||||
#endif | #endif | ||||
Show All 18 Lines |
Why do you guard the macro definition here? Could you add a short comment here why you are defining this?