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 7575
7676#endif // defined(__GNUC__)
7777
78- #if (__cplusplus ) >= 201703L
79-
8078#define ET_DEPRECATED [[deprecated]]
8179#define ET_EXPERIMENTAL \
8280 [[deprecated("This API is experimental and may change without notice.")]]
8381#define ET_FALLTHROUGH [[fallthrough]]
8482#define ET_NODISCARD [[nodiscard]]
8583#define ET_UNUSED [[maybe_unused]]
8684
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-
9985// UNLIKELY Macro
10086// example
10187// if ET_UNLIKELY(a > 10 && b < 5) {
You can’t perform that action at this time.
0 commit comments