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

Go to the source code of this file.

Macro Definition Documentation

◆ ARENE_HAS_FEATURE

#define ARENE_HAS_FEATURE ( ...)
Value:
0

A platform support query for testing if a supplied feature is defined.

Parameters
...The name of the feature to query for.
Returns
if __has_feature is defined, the result of __has_feature(__VA_ARGS__), otherwise 0 .

Example usage testing for the address_sanitizer feature:

#if ARENE_HAS_FEATURE(address_sanitizer)
Note
__has_feature is a clang-specific facility. It generally shouldn't be used in user code, and instead should be used only as a building block to other platform support queries.