|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
#include <exception>#include <stdexcept>#include <string>
Go to the source code of this file.
Classes | |
| struct | IpplCTAssert< B > |
| struct | IpplCTAssert< true > |
| class | assertion |
Macros | |
| #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__ ); |
Functions | |
| 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) |
| struct IpplCTAssert |
| #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 PInsist | ( | c, | |
| m | |||
| ) | if (!(c)) insist( #c, m, __FILE__, __LINE__ ); |
| void insist | ( | const char * | cond, |
| const char * | msg, | ||
| const char * | file, | ||
| int | line | ||
| ) |
Definition at line 92 of file PAssert.cpp.
| void toss_cookies | ( | const char * | cond, |
| const char * | astr, | ||
| const char * | bstr, | ||
| S | a, | ||
| T | b, | ||
| const char * | file, | ||
| int | line | ||
| ) |
| void toss_cookies | ( | const char * | cond, |
| const char * | file, | ||
| int | line | ||
| ) |
Definition at line 79 of file PAssert.cpp.