44#ifndef MAT_DEBUGPOLICIES
45#define MAT_DEBUGPOLICIES
51#define ASSERTALWAYS(x) \
52 this->assertAlways(__FILE__, __LINE__, __DATE__, __TIME__,x)
53#define ASSERTDEBUG(x) \
54 this->assertDebug(__FILE__, __LINE__, __DATE__, __TIME__,x)
59 void assertAlways(
char const * theFile,
int const theLine,
60 char const * theDate,
char const * theTime,
61 bool const statement)
const {
63 std::cout<<
"Assertion failed: "<<theFile<<
":"<<theLine
64 <<
" Compiled on "<<theDate<<
" at "<<theTime<<
".\n";
68 inline void assertDebug(
char const * theFile,
int const theLine,
69 char const * theDate,
char const * theTime,
70 bool const statement)
const {
71 assertAlways(theFile, theLine, theDate, theTime, statement);
77 inline void assertDebug(
char const * theFile,
int const theLine,
78 char const * theDate,
char const * theTime,
79 bool const statement)
const {}
85#define ASSERTALWAYS(x) \
86 this->assertAlways(__FILE__, __LINE__, __ID__,x)
87#define ASSERTDEBUG(x) \
88 this->assertDebug(__FILE__, __LINE__, __ID__,x)
94 char const * theId,
bool const statement)
const {
96 std::cout<<
"Assertion failed: "<<theFile<<
":"<<theLine
97 <<
" svn info: "<<theId<<
".\n";
102 char const * theId,
bool const statement)
const {
110 char const * theId,
bool const statement)
const {}
Definition DebugPolicies.h:91
void assertDebug(char const *theFile, int const theLine, char const *theId, bool const statement) const
Definition DebugPolicies.h:101
void assertAlways(char const *theFile, int const theLine, char const *theId, bool const statement) const
Definition DebugPolicies.h:93
Definition DebugPolicies.h:107
void assertDebug(char const *theFile, int const theLine, char const *theId, bool const statement) const
Definition DebugPolicies.h:109
Definition DebugPolicies.h:106
Definition allocate.cc:39