ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
StoreGate
StoreGate
tools
SGMsgStreamMacros.h
Go to the documentation of this file.
1
// This file's extension implies that it's C, but it's really -*- C++ -*-.
2
/*
3
* Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration.
4
*/
11
12
13
#ifndef STOREGATE_SGMSGSTREAMMACROS_H
14
#define STOREGATE_SGMSGSTREAMMACROS_H
15
16
17
#include "GaudiKernel/MsgStream.h"
18
19
20
// HACK LIFTED FROM AthenaBaseComps/AthMsgStreamMacros.h to remove dep loop
21
#define SG_MSG_OPEN (
22
#define SG_MSG_CLOSE )
23
#define SG_MSG_LVL(lvl, x, ...) \
24
do { \
25
if (msgLevel(lvl)) { \
26
msgStream(lvl) << __VA_OPT__(std::format SG_MSG_OPEN ) x __VA_OPT__ (, __VA_ARGS__ SG_MSG_CLOSE) << endmsg; \
27
} \
28
} while (0)
29
30
#define SG_MSG_VERBOSE(x, ...) SG_MSG_LVL(MSG::VERBOSE, x __VA_OPT__(, __VA_ARGS__))
31
#define SG_MSG_DEBUG(x, ...) SG_MSG_LVL(MSG::DEBUG, x __VA_OPT__(, __VA_ARGS__))
32
#define SG_MSG_INFO(x, ...) SG_MSG_LVL(MSG::INFO, x __VA_OPT__(, __VA_ARGS__))
33
#define SG_MSG_WARNING(x, ...) SG_MSG_LVL(MSG::WARNING, x __VA_OPT__(, __VA_ARGS__))
34
#define SG_MSG_ERROR(x, ...) SG_MSG_LVL(MSG::ERROR, x __VA_OPT__(, __VA_ARGS__))
35
#define SG_MSG_FATAL(x, ...) SG_MSG_LVL(MSG::FATAL, x __VA_OPT__(, __VA_ARGS__))
36
37
#endif
// not STOREGATE_SGMSGSTREAMMACROS_H
Generated on
for ATLAS Offline Software by
1.17.0