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

Go to the source code of this file.

Macro Definition Documentation

◆ ARENE_HAS_BUILTIN_IS_CONSTANT_EVALUATED

#define ARENE_HAS_BUILTIN_IS_CONSTANT_EVALUATED

A platform support query for testing if __builtin_is_constant_evaluated is defined.

Usage:

#if ARENE_IS_ON(ARENE_HAS_BUILTIN_IS_CONSTANT_EVALUATED)

The value of this query is determined as follows, in order of precedence:

  1. If __builtin_is_constant_evaluated is defined, it is ARENE_ON_BY_DEFAULT
  1. Otherwise, it is ARENE_OFF_BY_DEFAULT

◆ ARENE_HAS_BUILTIN_IS_CONSTANT_EVALUATED_I_

#define ARENE_HAS_BUILTIN_IS_CONSTANT_EVALUATED_I_   ARENE_OFF_BY_DEFAULT