63 #define LIFE_ASSERT_H 1
65 #include <lifev/core/util/LifeAssertSmart.hpp> 67 #define ABORT() std::abort() 70 #define RETURN_UNDEFINED ERROR_MSG("undefined return"); return 0
; 72 #define ASSERT_PRE0(X,A) LIFEV_ASSERT( X ).error( "Precondition Error" ); 73 #define ASSERT_POS0(X,A) LIFEV_ASSERT( X ).error( "Postcondition Error" ); 74 #define ASSERT_INV0(X,A) LIFEV_ASSERT( X ).error( "Invariant Error : " ); 75 #define ASSERT_BD0(X) LIFEV_ASSERT( X ).error( "Array bounds error" ); 77 #ifdef LIFEV_CHECK_ALL 84 #define HAVE_LIFEV_DEBUG 87 #ifdef HAVE_LIFEV_DEBUG 88 #define ASSERT(X,A) ASSERT0(X,A) 94 #define ASSERT_PRE(X,A) ASSERT_PRE0(X,A) 96 #define ASSERT_PRE(X,A) 100 #define ASSERT_POS(X,A) ASSERT_POS0(X,A) 102 #define ASSERT_POS(X,A) 106 #define ASSERT_INV(X,A) ASSERT_INV0(X,A) 108 #define ASSERT_INV(X,A) 112 #define ASSERT_BD(X) ASSERT_BD0(X)
#define LIFEV_ASSERT(expr)