3 #ifndef GEODE_ASSERT_H_ 4 #define GEODE_ASSERT_H_ 23 #include "geode_globals.hpp" 45 inline static void assertTrue(
bool expression,
const char* expressionText,
46 const char* file,
int line) {
48 throwAssertion(expressionText, file, line);
54 static void throwAssertion(
const char* expressionText,
const char* file,
62 #define GF_R_ASSERT(x) \ 63 apache::geode::client::Assert::assertTrue(x, #x, __FILE__, __LINE__) 65 #ifndef GF_DEBUG_ASSERTS 67 #define GF_DEBUG_ASSERTS 0 70 #ifndef GF_DEVEL_ASSERTS 71 #define GF_DEVEL_ASSERTS 0 74 #if GF_DEVEL_ASSERTS == 1 75 #undef GF_DEBUG_ASSERTS 76 #define GF_DEBUG_ASSERTS 1 79 #if GF_DEBUG_ASSERTS == 1 80 #undef GF_DEVEL_ASSERTS 81 #define GF_DEVEL_ASSERTS 1 85 #if GF_DEBUG_ASSERTS == 1 86 #define GF_D_ASSERT(x) \ 87 apache::geode::client::Assert::assertTrue(x, #x, __FILE__, __LINE__) 89 #define GF_D_ASSERT(x) 93 #if GF_DEVEL_ASSERTS == 1 94 #define GF_DEV_ASSERT(x) \ 95 apache::geode::client::Assert::assertTrue(x, #x, __FILE__, __LINE__) 97 #define GF_DEV_ASSERT(x) 100 #endif // GEODE_ASSERT_H_ Each enum represents a predefined RegionAttributes in a Cache.
Definition: Assert.hpp:31
#define CPPCACHE_EXPORT
Defines a Geode CPPCACHE export.
Definition: geode_base.hpp:58
static void assertTrue(bool expression, const char *expressionText, const char *file, int line)
If the given expression is true, does nothing, otherwise calls throwAssertion .
Definition: Assert.hpp:45
Declares debugging assertion reporting functions.
Definition: Assert.hpp:40
This namespace contains all the Geode C++ API classes, enumerations and globals.