ATLAS Offline Software
Loading...
Searching...
No Matches
PrintMsg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7#ifndef ROOT_CORE_UTILS__PRINT_MSG_H
8#define ROOT_CORE_UTILS__PRINT_MSG_H
9
11
12
13
15
16#include <string>
18
19class TString;
20
21namespace RCU
22{
23 void send_message (const char *package, const char *file, unsigned line,
24 MessageType type, const char *msg);
25 void send_message (const char *package, const char *file, unsigned line,
26 MessageType type, const std::string& msg);
27 void send_message (const char *package, const char *file, unsigned line,
28 MessageType type, const TString& msg);
29 [[noreturn]] void
30 send_message_abort (const char *package, const char *file, unsigned line,
31 MessageType type, const char *msg);
32 [[noreturn]] void
33 send_message_abort (const char *package, const char *file, unsigned line,
34 MessageType type, const std::string& msg);
35 [[noreturn]] void
36 send_message_abort (const char *package, const char *file, unsigned line,
37 MessageType type, const TString& msg);
38}
39
40#ifndef ROOTCORE_PACKAGE
41#define ROOTCORE_PACKAGE 0
42#endif
43
44#define RCU_PRINT_MSG(message) \
45 ::RCU::send_message (ROOTCORE_PACKAGE, __FILE__, __LINE__, ::RCU::MESSAGE_REGULAR, (message));
46
47#define RCU_WARN_MSG(message) \
48 ::RCU::send_message (ROOTCORE_PACKAGE, __FILE__, __LINE__, ::RCU::MESSAGE_WARNING, (message));
49
50#define RCU_ERROR_MSG(message) \
51 ::RCU::send_message (ROOTCORE_PACKAGE, __FILE__, __LINE__, ::RCU::MESSAGE_ERROR, (message));
52
53#define RCU_THROW_MSG(message) \
54 ::RCU::send_message_abort (ROOTCORE_PACKAGE, __FILE__, __LINE__, ::RCU::MESSAGE_EXCEPTION, (message));
55
56#endif
This module defines a variety of assert style macros.
Definition Assert.cxx:23
void send_message(const char *package, const char *file, unsigned line, MessageType type, const char *msg)
Definition PrintMsg.cxx:24
void send_message_abort(const char *package, const char *file, unsigned line, MessageType type, const char *msg)
Definition PrintMsg.cxx:54
MessageType
Definition MessageType.h:19
MsgStream & msg
Definition testRead.cxx:32
TFile * file