VTK-m
2.0
|
#include <vtkm/internal/Configure.h>
#include <cassert>
Go to the source code of this file.
Macros | |
#define | VTKM_ASSERT(condition) assert(condition) |
#define | VTKM_ASSERTS_CHECKED |
#define VTKM_ASSERT | ( | condition | ) | assert(condition) |
Asserts that condition resolves to true. If condition is false, then a diagnostic message is outputted and execution is terminated. The behavior is essentially the same as the POSIX assert macro, but is wrapped for added portability.
Like the POSIX assert macro, the check will be removed when compiling in non-debug mode (specifically when NDEBUG is defined), so be prepared for the possibility that the condition is never evaluated.
The VTKM_NO_ASSERT cmake and preprocessor option allows debugging builds to remove assertions for performance reasons.
#define VTKM_ASSERTS_CHECKED |