ATLAS Offline Software
Loading...
Searching...
No Matches
SGassert.h File Reference
#include <cassert>
#include <iostream>
#include <print>
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 21 of file SGassert.h.

◆ SGASSERTERROR

#define SGASSERTERROR ( FALSEEXPR)
Value:
std::println (std::cerr, "Now we expect to see an error message:\n" \
"----Error Message Starts--->>"); \
assert(!(FALSEEXPR)); \
std::println (std::cerr, "<<---Error Message Ends-------");

Definition at line 22 of file SGassert.h.

22#define SGASSERTERROR( FALSEEXPR ) \
23 std::println (std::cerr, "Now we expect to see an error message:\n" \
24 "----Error Message Starts--->>"); \
25 assert(!(FALSEEXPR)); \
26 std::println (std::cerr, "<<---Error Message Ends-------");