|
VR-Vantage
|
|
|
Loading...
Searching...
No Matches
Go to the documentation of this file.
13#ifndef DT_ASSERT_ENABLED
14#define DT_ASSERT_ENABLED 0
25 #define Assert(exp) static_cast<void>(0)
28#define ASSERT_PREDICATE(p) Assert(p);
30#define ASSERT_RETURN(p) Assert(p); \
33#define ASSERT_RETURN_ZERO(p) Assert(p); \
37#define ASSERT_PREDICATE_RETURN(p) Assert((p)); \
41#define ASSERT_PREDICATE_RETURN_ZERO(p) Assert((p)); \
45#define ASSERT_PREDICATE_RETURN_DEFAULT_CONSTRUCTOR(V, p) Assert((p)); \
49#define ASSERT_PREDICATE_RETURN_FALSE(p) Assert((p)); \
53#define ASSERT_PREDICATE_RETURN_TRUE(p) Assert((p)); \
57#define ASSERT_RETURN_EMPTY_STRING(p) Assert(p); \
61#define ASSERT_RETURN_FALSE(p) Assert(p); \
64#define ASSERT_RETURN_TRUE(p) Assert(p); \
68#define ASSERT_EQUAL_RETURN_ZERO(x,y) Assert(x==y);\
72#define ASSERT_RETURN_VALUE(condition, return_value) Assert(condition);\
73if (!(condition)) return (return_value);