#include <cassert>
#include <iostream>
Go to the source code of this file.
◆ SGASSERT
| #define SGASSERT |
( |
| TRUEEXPR | ) |
|
◆ SGASSERTERROR
| #define SGASSERTERROR |
( |
| FALSEEXPR | ) |
|
Value: std::cerr << "Now we expect to see an error message:" << std::endl \
<< "----Error Message Starts--->>" << std::endl; \
assert(!(FALSEEXPR)); \
std::cerr<< "<<---Error Message Ends-------" << std::endl
Definition at line 23 of file SGassert.h.
23#define SGASSERTERROR( FALSEEXPR ) \
24 std::cerr << "Now we expect to see an error message:" << std::endl \
25 << "----Error Message Starts--->>" << std::endl; \
26 assert(!(FALSEEXPR)); \
27 std::cerr<< "<<---Error Message Ends-------" << std::endl