Macros
compile_time_assert.hpp File Reference

Compile time checks. More...

#include "macros.hpp"
Include dependency graph for compile_time_assert.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ecl_compile_time_assert(logical_expression)   typedef ecl::static_assert_test<sizeof(ecl::COMPILE_TIME_FAILURE< static_cast<bool>(logical_expression) >)> JOIN(compile_time_check,__LINE__)
 
#define ecl_verbose_compile_time_assert(logical_expression, message)
 

Detailed Description

Compile time checks.

Macros and classes that allow compile time checking of conditional checks.

Date
May 2009

Definition in file compile_time_assert.hpp.

Macro Definition Documentation

◆ ecl_compile_time_assert

#define ecl_compile_time_assert (   logical_expression)    typedef ecl::static_assert_test<sizeof(ecl::COMPILE_TIME_FAILURE< static_cast<bool>(logical_expression) >)> JOIN(compile_time_check,__LINE__)

◆ ecl_verbose_compile_time_assert

#define ecl_verbose_compile_time_assert (   logical_expression,
  message 
)
Value:
{ \
ecl::COMPILE_TIME_FAILURE<( (logical_expression) != 0)> ERROR_##message; \
(void)ERROR_##message; \
}


ecl_errors
Author(s): Daniel Stonier
autogenerated on Mon Feb 28 2022 22:16:11