blob: d26423b89a9fe8a506322463200003902d1f50f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#ifndef INCLUDE_NCURSES_MARCOS_HPP_
#define INCLUDE_NCURSES_MARCOS_HPP_
#if !defined(NCURSES_CPP_NAMESPACE)
#define NCURSES_CPP_NAMESPACE ncurses
#endif
#if defined(__cpp_constexpr)
#define NCURSES_CPP_CONSTEXPR constexpr
#if 201304 <= __cpp_constexpr
#define NCURSES_CPP_CONSTEXPR_14 constexpr
#else
#define NCURSES_CPP_CONSTEXPR_14
#endif
#if (201907 <= __cpp_constexpr) && \
(!defined(__GNUC__) || (110400 < GCC_VERSION))
#define NCURSES_CPP_CONSTEXPR_20 constexpr
#else
#define NCURSES_CPP_CONSTEXPR_20
#endif
#define NCURSES_CPP_CONST_OR_CONSTEXPR constexpr
#else
#define NCURSES_CPP_CONSTEXPR
#define NCURSES_CPP_CONSTEXPR_14
#define NCURSES_CPP_CONST_OR_CONSTEXPR const
#endif
#if !defined(NCURSES_CPP_CONSTEXPR_INLINE)
#if 201606L <= __cpp_inline_variables
#define NCURSES_CPP_CONSTEXPR_INLINE NCURSES_CPP_CONSTEXPR inline
#else
#define NCURSES_CPP_CONSTEXPR_INLINE NCURSES_CPP_CONSTEXPR
#endif
#endif
#if !defined(NCURSES_CPP_NOEXCEPT)
#if defined(_MSC_VER) && (_MSC_VER <= 1800)
#define NCURSES_CPP_NOEXCEPT
#else
#define NCURSES_CPP_NOEXCEPT noexcept
#define NCURSES_CPP_HAS_NOEXCEPT 1
#if defined(NCURSES_CPP_NO_EXCEPTIONS)
#define NCURSES_CPP_NOEXCEPT_WHEN_NO_EXCEPTIONS noexcept
#else
#define NCURSES_CPP_NOEXCEPT_WHEN_NO_EXCEPTIONS
#endif
#endif
#endif
#endif // INCLUDE_NCURSES_MARCOS_HPP_
|