ATLAS Offline Software
Loading...
Searching...
No Matches
SGassert.h File Reference
#include <cassert>
#include <iostream>
Include dependency graph for SGassert.h:

Go to the source code of this file.

Macros

#define SGASSERT(TRUEEXPR)
#define SGASSERTERROR(FALSEEXPR)

Macro Definition Documentation

◆ SGASSERT

#define SGASSERT ( TRUEEXPR)
Value:
assert(TRUEEXPR)

Definition at line 22 of file SGassert.h.

◆ 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