 |
IDS peak AFL v2.0.1
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
14#if defined(__cplusplus) && ((__cplusplus >= 201703L) || (defined(_MSVC_LANG) && (_MSVC_LANG >= 201703L)))
24# define PEAK_COMMON_NO_DISCARD [[nodiscard]]
34# define PEAK_COMMON_MAYBE_UNUSED [[maybe_unused]]
38# ifdef __has_c_attribute
39# define PEAK_COMMON_has_c_attribute(x) __has_c_attribute(x)
41# define PEAK_COMMON_has_c_attribute(x) 0
44# if PEAK_COMMON_has_c_attribute(nodiscard)
53# define PEAK_COMMON_NO_DISCARD [[nodiscard]]
55# elif defined(__clang__) || defined(__GNUC__) || defined(__GNUG__)
64# define PEAK_COMMON_NO_DISCARD __attribute__((warn_unused_result))
66# elif defined(_MSC_VER)
75# define PEAK_COMMON_NO_DISCARD _Check_return_
86# define PEAK_COMMON_NO_DISCARD
90# if PEAK_COMMON_has_c_attribute(maybe_unused)
99# define PEAK_COMMON_MAYBE_UNUSED [[maybe_unused]]
101# elif defined(__clang__) || defined(__GNUC__) || defined(__GNUG__)
110# define PEAK_COMMON_MAYBE_UNUSED __attribute__((unused))
121# define PEAK_COMMON_MAYBE_UNUSED