43 std::ostringstream
str;
47 str <<
package << ":";
51 if (strncmp (
file,
"../", 3) == 0)
62 {
"message",
"warning",
"error",
"exception",
"abort"};
63 str << type_names[mytype] <<
":";
66 if (!
str.str().empty())
73 const char *envname = 0;
75 envname =
"ROOTCOREUTILS_ABORT";
77 envname =
"ROOTCOREUTILS_EXCEPTION";
80 const char *abort_type = getenv (envname);
86 }
else if (strcmp (abort_type,
"abort") == 0)
89 }
else if (strcmp (abort_type,
"exception") == 0)
96 RCU_WARN_MSG (std::string (
"unknown value for ROOTCOREUTILS_ABORT ") + abort_type);
100 std::cout <<
str.str() << std::endl;
#define RCU_WARN_MSG(message)
This module defines a variety of assert style macros.
@ MESSAGE_ABORT
description: print and abort
@ MESSAGE_UNSPECIFIED
description: unspecified message type
@ MESSAGE_EXCEPTION
description: send out an exception
const char * package
description: the location where the message was send
MessageType type
description: the type of this message
const char * message
description: the actual message we are sending or 0 if there isn't one