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

Go to the source code of this file.

Detailed Description

Compile time configuration for the static assertions macros.

Macro Definition Documentation

◆ ARENE_GTEST_STATIC_ASSERTIONS

#define ARENE_GTEST_STATIC_ASSERTIONS

A compile time configuration query for testing if static assertion macros should actually static assert.

Usage:

#if ARENE_IS_ON(ARENE_GTEST_STATIC_ASSERTIONS)

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

  1. If ARENE_GTEST_STATIC_ASSERTIONS has been explicitly defined via a -D flag to the compiler or similar:
    • ARENE_ON if it is truthy
    • ARENE_OFF if it is not truthy
  1. Otherwise, it is ARENE_ON_BY_DEFAULT

◆ ARENE_GTEST_STATIC_ASSERTIONS_I_

#define ARENE_GTEST_STATIC_ASSERTIONS_I_   ARENE_ON_BY_DEFAULT