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

Go to the source code of this file.

Macro Definition Documentation

◆ ARENE_HAS_BUILTIN

#define ARENE_HAS_BUILTIN ( ...)
Value:
0

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

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

Example usage testing for __builtin_is_constant_evaluated :

#if ARENE_HAS_BUILTIN(__builtin_is_constant_evaluated)