Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-03 08:13:17

0001 // -*- C++ -*-
0002 //===----------------------------------------------------------------------===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //===----------------------------------------------------------------------===//
0009 
0010 #ifndef _LIBCPP___CONFIGURATION_LANGUAGE_H
0011 #define _LIBCPP___CONFIGURATION_LANGUAGE_H
0012 
0013 #include <__config_site>
0014 
0015 #ifndef _LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER
0016 #  pragma GCC system_header
0017 #endif
0018 
0019 // NOLINTBEGIN(libcpp-cpp-version-check)
0020 #ifdef __cplusplus
0021 #  if __cplusplus <= 201103L
0022 #    define _LIBCPP_STD_VER 11
0023 #  elif __cplusplus <= 201402L
0024 #    define _LIBCPP_STD_VER 14
0025 #  elif __cplusplus <= 201703L
0026 #    define _LIBCPP_STD_VER 17
0027 #  elif __cplusplus <= 202002L
0028 #    define _LIBCPP_STD_VER 20
0029 #  elif __cplusplus <= 202302L
0030 #    define _LIBCPP_STD_VER 23
0031 #  else
0032 // Expected release year of the next C++ standard
0033 #    define _LIBCPP_STD_VER 26
0034 #  endif
0035 #endif // __cplusplus
0036 // NOLINTEND(libcpp-cpp-version-check)
0037 
0038 #if defined(__cpp_rtti) && __cpp_rtti >= 199711L
0039 #  define _LIBCPP_HAS_RTTI 1
0040 #else
0041 #  define _LIBCPP_HAS_RTTI 0
0042 #endif
0043 
0044 #if defined(__cpp_exceptions) && __cpp_exceptions >= 199711L
0045 #  define _LIBCPP_HAS_EXCEPTIONS 1
0046 #else
0047 #  define _LIBCPP_HAS_EXCEPTIONS 0
0048 #endif
0049 
0050 #endif // _LIBCPP___CONFIGURATION_LANGUAGE_H