From 0f80bb79c0181c706cf6acce44f854e96ecaf755 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Mon, 19 Mar 2012 16:20:34 +0000 Subject: I've moved __cxa_terminate_handler, __cxa_unexpected_handler and __cxa_new_handler from the public header cxxabi.h into the private header cxa_handlers.hpp. During this move I've also moved them from namespace __cxxabiapple into the global namespace. They are, and have always been extern C and so the namespace (or lack of it) does not affect their ABI. In general external clients should not reference these symbols. They are atomic variables and will be changing into C++11 atomic variables in the future. However for those few clients who really need access to them, their name, mangling, size, alignment and layout will remain stable. You just may need your own declaration of them. Include guards have been added to the private header cxa_exception.hpp. The private header cxa_default_handlers.hpp has been removed and the default handlers are now file-static. Include guards have been added to the private header cxa_handlers.hpp. git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@153039 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/cxxabi.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'include') diff --git a/include/cxxabi.h b/include/cxxabi.h index f769b86..66ef6d4 100644 --- a/include/cxxabi.h +++ b/include/cxxabi.h @@ -172,21 +172,4 @@ extern bool __cxa_uncaught_exception() throw(); namespace abi = __cxxabiv1; -// Below are Apple extensions to support implementing C++ ABI in a seperate dylib -namespace __cxxabiapple -{ -extern "C" -{ - -// Apple additions to support multiple STL stacks that share common -// terminate, unexpected, and new handlers -// But touching these is a bad idea. It is not thread safe. -// Use get_terminate, set_terminate, etc. instead. -extern void (*__cxa_terminate_handler)(); -extern void (*__cxa_unexpected_handler)(); -extern void (*__cxa_new_handler)(); - -} // extern "C" -} // namespace __cxxabiv1 - #endif // __CXXABI_H -- cgit v1.2.3