ITK  5.0.0
Insight Segmentation and Registration Toolkit
Namespaces | Macros
itkStaticAssert.h File Reference
#include "itkMacro.h"
+ Include dependency graph for itkStaticAssert.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 itk
 

Macros

#define ITK_DO_JOIN(X, Y)   ITK_DO_JOIN2(X,Y)
 
#define ITK_DO_JOIN2(X, Y)   X##Y
 
#define ITK_JOIN(X, Y)   ITK_DO_JOIN(X,Y)
 
#define itkStaticAssert(expr, str)   enum { ITK_JOIN(static_assert_typedef, __LINE__) = sizeof(itk::StaticAssertFailure<((expr) == 0 ? false : true)>) };
 

Macro Definition Documentation

#define ITK_DO_JOIN (   X,
 
)    ITK_DO_JOIN2(X,Y)

Definition at line 47 of file itkStaticAssert.h.

#define ITK_DO_JOIN2 (   X,
 
)    X##Y

Definition at line 48 of file itkStaticAssert.h.

#define ITK_JOIN (   X,
 
)    ITK_DO_JOIN(X,Y)

Definition at line 46 of file itkStaticAssert.h.

#define itkStaticAssert (   expr,
  str 
)    enum { ITK_JOIN(static_assert_typedef, __LINE__) = sizeof(itk::StaticAssertFailure<((expr) == 0 ? false : true)>) };