VTK-m  2.0
Macros
Assume.h File Reference
#include <vtkm/Assert.h>

Go to the source code of this file.

Macros

#define VTKM_ASSUME(cond)
 
#define VTKM_ASSUME_IMPL(cond)   (void)0 /* no-op */
 

Macro Definition Documentation

◆ VTKM_ASSUME

#define VTKM_ASSUME (   cond)
Value:
VTKM_SWALLOW_SEMICOLON_PRE_BLOCK \
{ \
const bool c = cond; \
VTKM_ASSERT("Bad assumption in VTKM_ASSUME: " #cond&& c); \
VTKM_ASSUME_IMPL(c); \
(void)c; /* Prevents unused var warnings */ \
} \
VTKM_SWALLOW_SEMICOLON_POST_BLOCK

◆ VTKM_ASSUME_IMPL

#define VTKM_ASSUME_IMPL (   cond)    (void)0 /* no-op */