Go to the documentation of this file.
9 #ifndef ____CXXABI_CONFIG_H
10 #define ____CXXABI_CONFIG_H
12 #if !defined(__has_attribute)
13 #define __has_attribute(_attribute_) 0
16 #if defined(__clang__)
17 #define _LIBCXXABI_COMPILER_CLANG
18 #ifndef __apple_build_version__
19 #define _LIBCXXABI_CLANG_VER (__clang_major__ * 100 + __clang_minor__)
23 #if !defined(_LIBCXXABI_DISABLE_VISIBILITY_ANNOTATIONS)
24 #define _LIBCXXABI_HIDDEN __attribute__((__visibility__("hidden")))
25 #define _LIBCXXABI_DATA_VIS __attribute__((__visibility__("default")))
26 #define _LIBCXXABI_FUNC_VIS __attribute__((__visibility__("default")))
27 #if __has_attribute(__type_visibility__)
28 #define _LIBCXXABI_TYPE_VIS __attribute__((__type_visibility__("default")))
30 #define _LIBCXXABI_TYPE_VIS __attribute__((__visibility__("default")))
33 #define _LIBCXXABI_HIDDEN
34 #define _LIBCXXABI_DATA_VIS
35 #define _LIBCXXABI_FUNC_VIS
36 #define _LIBCXXABI_TYPE_VIS
39 #define _LIBCXXABI_WEAK __attribute__((__weak__))
41 #if defined(__clang__)
42 #define _LIBCXXABI_COMPILER_CLANG
45 #if __has_attribute(__no_sanitize__) && defined(_LIBCXXABI_COMPILER_CLANG)
46 #define _LIBCXXABI_NO_CFI __attribute__((__no_sanitize__("cfi")))
48 #define _LIBCXXABI_NO_CFI
51 #if defined(_LIBCXXABI_COMPILER_CLANG)
52 #if !__has_feature(cxx_exceptions)
53 #define _LIBCXXABI_NO_EXCEPTIONS
57 #endif // ____CXXABI_CONFIG_H