VTK-m  2.2
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:
{ \
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 */
VTKM_SWALLOW_SEMICOLON_PRE_BLOCK
#define VTKM_SWALLOW_SEMICOLON_PRE_BLOCK
Definition: Configure.h:352