#include <exception>
#include <stdexcept>
#include <string>
Go to the source code of this file.
|
#define | CTAssert(c) IpplCTAssert<(c)>::test() |
|
#define | PAssert(c) if (!(c)) toss_cookies( #c, __FILE__, __LINE__ ); |
|
#define | PAssert_CMP(cmp, a, b) if (!(cmp)) toss_cookies(#cmp, #a, #b, a, b, __FILE__, __LINE__); |
|
#define | PAssert_EQ(a, b) PAssert_CMP(a == b, a, b) |
|
#define | PAssert_NE(a, b) PAssert_CMP(a != b, a, b) |
|
#define | PAssert_LT(a, b) PAssert_CMP(a < b, a, b) |
|
#define | PAssert_LE(a, b) PAssert_CMP(a <= b, a, b) |
|
#define | PAssert_GT(a, b) PAssert_CMP(a > b, a, b) |
|
#define | PAssert_GE(a, b) PAssert_CMP(a >= b, a, b) |
|
#define | PInsist(c, m) if (!(c)) insist( #c, m, __FILE__, __LINE__ ); |
|
|
void | toss_cookies (const char *cond, const char *file, int line) |
|
template<class S , class T > |
void | toss_cookies (const char *cond, const char *astr, const char *bstr, S a, T b, const char *file, int line) |
|
void | insist (const char *cond, const char *msg, const char *file, int line) |
|
◆ CTAssert
◆ PAssert
#define PAssert |
( |
|
c | ) |
if (!(c)) toss_cookies( #c, __FILE__, __LINE__ ); |
◆ PAssert_CMP
#define PAssert_CMP |
( |
|
cmp, |
|
|
|
a, |
|
|
|
b |
|
) |
| if (!(cmp)) toss_cookies(#cmp, #a, #b, a, b, __FILE__, __LINE__); |
◆ PAssert_EQ
◆ PAssert_GE
◆ PAssert_GT
◆ PAssert_LE
◆ PAssert_LT
◆ PAssert_NE
◆ PInsist
#define PInsist |
( |
|
c, |
|
|
|
m |
|
) |
| if (!(c)) insist( #c, m, __FILE__, __LINE__ ); |
◆ insist()
void insist |
( |
const char * |
cond, |
|
|
const char * |
msg, |
|
|
const char * |
file, |
|
|
int |
line |
|
) |
| |
◆ toss_cookies() [1/2]
template<class S , class T >
void toss_cookies |
( |
const char * |
cond, |
|
|
const char * |
astr, |
|
|
const char * |
bstr, |
|
|
S |
a, |
|
|
T |
b, |
|
|
const char * |
file, |
|
|
int |
line |
|
) |
| |
◆ toss_cookies() [2/2]
void toss_cookies |
( |
const char * |
cond, |
|
|
const char * |
file, |
|
|
int |
line |
|
) |
| |