![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef ASGMESSAGING_CHECK_H
6 #define ASGMESSAGING_CHECK_H
39 #define ASG_CHECK(...) \
40 BOOST_PP_OVERLOAD(ASG_CHECK_, __VA_ARGS__)(__VA_ARGS__)
42 #define ASG_CHECK_1( EXP ) \
44 const StatusCode sc__(EXP); \
45 if( ATH_UNLIKELY ( ! sc__.isSuccess() ) ) { \
46 ATH_MSG_ERROR( "Failed to call \"" << #EXP << "\"" ); \
51 #define ASG_CHECK_2( EXP, RET ) \
53 const StatusCode sc__(EXP); \
54 if( ATH_UNLIKELY ( ! sc__.isSuccess() ) ) { \
55 ATH_MSG_ERROR( "Failed to call \"" << #EXP << "\"" ); \
69 #define ASG_CHECK_SA( SOURCE, EXP ) \
71 const StatusCode sc__(EXP); \
72 if( ATH_UNLIKELY ( ! sc__.isSuccess() ) ) { \
73 static MsgStream msg( SOURCE ); \
74 msg << MSGSTREAM_REPORT_PREFIX << MSG::ERROR \
75 << "Failed to call \"" << #EXP << "\"" << endmsg; \
81 #ifdef XAOD_STANDALONE
82 # define ATH_CHECK ASG_CHECK
87 #endif // ASGMESSAGING_CHECK_H