Viskores  1.0
Macros
Assume.h File Reference
#include <viskores/Assert.h>

Go to the source code of this file.

Macros

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

Macro Definition Documentation

◆ VISKORES_ASSUME

#define VISKORES_ASSUME (   cond)
Value:
{ \
const bool c = cond; \
VISKORES_ASSERT("Bad assumption in VISKORES_ASSUME: " #cond&& c); \
VISKORES_ASSUME_IMPL(c); \
(void)c; /* Prevents unused var warnings */ \
} \
VISKORES_SWALLOW_SEMICOLON_POST_BLOCK

◆ VISKORES_ASSUME_IMPL

#define VISKORES_ASSUME_IMPL (   cond)    (void)0 /* no-op */
VISKORES_SWALLOW_SEMICOLON_PRE_BLOCK
#define VISKORES_SWALLOW_SEMICOLON_PRE_BLOCK
Definition: Configure.h:360