Loading...
Searching...
No Matches
Go to the documentation of this file.
12#if !(defined(_MSC_VER) && __cplusplus == 199711L) && !defined(__INTEL_COMPILER)
13#if __cplusplus >= 201402L
15#if __cplusplus >= 201703L
17#if __cplusplus > 201703L
22#elif defined(_MSC_VER) && __cplusplus == 199711L
25#if _MSVC_LANG >= 201402L
27#if _MSVC_LANG > 201402L && _MSC_VER >= 1910
29#if _MSVC_LANG > 201703L && _MSC_VER >= 1910
36#if defined(CLI11_CPP14)
37#define CLI11_DEPRECATED(reason) [[deprecated(reason)]]
38#elif defined(_MSC_VER)
39#define CLI11_DEPRECATED(reason) __declspec(deprecated(reason))
41#define CLI11_DEPRECATED(reason) __attribute__((deprecated(reason)))
45#if !defined(CLI11_CPP17) || \
46 (defined(__GNUC__) && !defined(__llvm__) && !defined(__INTEL_COMPILER) && __GNUC__ < 10 && __GNUC__ > 4)
47#define CLI11_NODISCARD
49#define CLI11_NODISCARD [[nodiscard]]
53#ifndef CLI11_USE_STATIC_RTTI
54#if(defined(_HAS_STATIC_RTTI) && _HAS_STATIC_RTTI)
55#define CLI11_USE_STATIC_RTTI 1
56#elif defined(__cpp_rtti)
57#if(defined(_CPPRTTI) && _CPPRTTI == 0)
58#define CLI11_USE_STATIC_RTTI 1
60#define CLI11_USE_STATIC_RTTI 0
62#elif(defined(__GCC_RTTI) && __GXX_RTTI)
63#define CLI11_USE_STATIC_RTTI 0
65#define CLI11_USE_STATIC_RTTI 1
73#define CLI11_INLINE inline