File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 75
75
76
76
#endif // defined(__GNUC__)
77
77
78
- #if (__cplusplus ) >= 201703L
79
-
80
78
#define ET_DEPRECATED [[deprecated]]
81
79
#define ET_EXPERIMENTAL \
82
80
[[deprecated("This API is experimental and may change without notice.")]]
83
81
#define ET_FALLTHROUGH [[fallthrough]]
84
82
#define ET_NODISCARD [[nodiscard]]
85
83
#define ET_UNUSED [[maybe_unused]]
86
84
87
- #else
88
-
89
- #define ET_DEPRECATED __attribute__((deprecated))
90
- #define ET_EXPERIMENTAL \
91
- __attribute__(( \
92
- deprecated("This API is experimental and may change without notice.")))
93
- #define ET_FALLTHROUGH __attribute__((fallthrough))
94
- #define ET_NODISCARD __attribute__((warn_unused_result))
95
- #define ET_UNUSED __attribute__((unused))
96
-
97
- #endif // (__cplusplus) >= 201703L
98
-
99
85
// UNLIKELY Macro
100
86
// example
101
87
// if ET_UNLIKELY(a > 10 && b < 5) {
You can’t perform that action at this time.
0 commit comments