Arene Base
Fundamental Utilities For Safety Critical C++
Loading...
Searching...
No Matches
has_attribute.hpp File Reference

Go to the source code of this file.

Macro Definition Documentation

◆ ARENE_HAS_ATTRIBUTE

#define ARENE_HAS_ATTRIBUTE ( ...)
Value:
#define ARENE_HAS_OLD_ATTRIBUTE(...)
A wrapper around the "old style" __has_attribute query.
Definition has_attribute.hpp:41

A wrapper for testing for an attribute which will fall back to the "old" style query if the "standard" one is not available.

Parameters
...The attribute to query for.
Returns
The result of invoking ARENE_HAS_STD_ATTRIBUTE if possible, else ARENE_HAS_OLD_ATTRIBUTE .
Note
Users should generally prefer ARENE_HAS_STD_ATTRIBUTE . Only use this if you know you need to.

◆ ARENE_HAS_OLD_ATTRIBUTE

#define ARENE_HAS_OLD_ATTRIBUTE ( ...)
Value:
0

A wrapper around the "old style" __has_attribute query.

Parameters
...The attribute to query for.
Returns
if __has_attribute is defined, the result of __has_attribute(__VA_ARGS__) , otherwise false .
Note
Users should generally prefer ARENE_HAS_STD_ATTRIBUTE or ARENE_HAS_ATTRIBUTE .

◆ ARENE_HAS_STD_ATTRIBUTE

#define ARENE_HAS_STD_ATTRIBUTE ( ...)
Value:
0

A wrapper around the "standard" __has_cpp_attribute or __has_c_attribute query.

Parameters
...The attribute to query for.
Returns
if __has_c[pp]_attribute is defined, the result of __has_c[pp]_attribute(__VA_ARGS__) , otherwise false .