Tomographer  v4.1
Tomographer C++ Framework Documentation
cxxdefs.h File Reference

(v4.1)

Basic definitions, which may have to be defined before any Eigen headers or further utilities are included. More...

#include <cassert>
#include <cstddef>
#include <cstdlib>
+ Include dependency graph for cxxdefs.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TOMO_STATIC_ASSERT_EXPR(...)   static_assert(__VA_ARGS__, #__VA_ARGS__)
 Tool for static assertions without message. More...
 
#define tomographer_assert(...)   eigen_assert((__VA_ARGS__) && "assert: " #__VA_ARGS__)
 Assertion test macro.
 

Detailed Description

Basic definitions, which may have to be defined before any Eigen headers or further utilities are included.

Definition in file cxxdefs.h.

Macro Definition Documentation

§ TOMO_STATIC_ASSERT_EXPR

#define TOMO_STATIC_ASSERT_EXPR (   ...)    static_assert(__VA_ARGS__, #__VA_ARGS__)

Tool for static assertions without message.

Simply use as message to C++11's static_assert() a stringified version of the expression itself.

Definition at line 76 of file cxxdefs.h.