1 #ifndef _GEMFIRE_ASSERT_HPP_ 2 #define _GEMFIRE_ASSERT_HPP_ 11 #include "gfcpp_globals.hpp" 33 inline static void assertTrue(
bool expression,
const char* expressionText,
const char* file,
int line )
36 throwAssertion( expressionText, file, line );
42 static void throwAssertion(
const char* expressionText,
const char* file,
int line );
48 #define GF_R_ASSERT(x) gemfire::Assert::assertTrue( x, #x, __FILE__, __LINE__ ) 50 #ifndef GF_DEBUG_ASSERTS 52 #define GF_DEBUG_ASSERTS 0 55 #ifndef GF_DEVEL_ASSERTS 56 #define GF_DEVEL_ASSERTS 0 59 #if GF_DEVEL_ASSERTS == 1 60 #undef GF_DEBUG_ASSERTS 61 #define GF_DEBUG_ASSERTS 1 64 #if GF_DEBUG_ASSERTS == 1 65 #undef GF_DEVEL_ASSERTS 66 #define GF_DEVEL_ASSERTS 1 70 #if GF_DEBUG_ASSERTS == 1 71 #define GF_D_ASSERT(x) gemfire::Assert::assertTrue( x, #x, __FILE__, __LINE__ ) 73 #define GF_D_ASSERT(x) 77 #if GF_DEVEL_ASSERTS == 1 78 #define GF_DEV_ASSERT(x) gemfire::Assert::assertTrue( x, #x, __FILE__, __LINE__ ) 80 #define GF_DEV_ASSERT(x) This namespace contains all the GemFire C++ API classes, enumerations and globals.
Definition: Assert.hpp:19
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:33
#define CPPCACHE_EXPORT
Defines a GemFire CPPCACHE export.
Definition: gf_base.hpp:51
Declares debugging assertion reporting functions.
Definition: Assert.hpp:26