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