IDS peak IPL v1.18.0
Loading...
Searching...
No Matches
peak_ipl_attribute_defines.h
Go to the documentation of this file.
1
5
6#pragma once
7
8
9#if __cplusplus >= 201703L || (defined(_MSVC_LANG) && (_MSVC_LANG >= 201703L))
10# define PEAK_IPL_NO_DISCARD [[nodiscard]]
11# define PEAK_IPL_MAYBE_UNUSED [[maybe_unused]]
12#else
13# ifdef _MSC_VER
14# define PEAK_IPL_NO_DISCARD _Check_return_
15# define PEAK_IPL_MAYBE_UNUSED
16# elif defined(__clang__) || defined(__GNUC__) || defined(__GNUG__)
17# define PEAK_IPL_NO_DISCARD __attribute__((warn_unused_result))
18# define PEAK_IPL_MAYBE_UNUSED __attribute__((unused))
19# else
20# define PEAK_IPL_NO_DISCARD
21# define PEAK_IPL_MAYBE_UNUSED
22# endif
23#endif
24