46 std::ostringstream
str;
50 str <<
package << ":";
54 if (strncmp (
file,
"../", 3) == 0)
65 {
"message",
"warning",
"error",
"exception",
"abort"};
66 str << type_names[mytype] <<
":";
69 if (!
str.str().empty())
76 const char *envname = 0;
78 envname =
"ROOTCOREUTILS_ABORT";
80 envname =
"ROOTCOREUTILS_EXCEPTION";
83 const char *abort_type = getenv (envname);
89 }
else if (strcmp (abort_type,
"abort") == 0)
92 }
else if (strcmp (abort_type,
"exception") == 0)
99 RCU_WARN_MSG (std::string (
"unknown value for ROOTCOREUTILS_ABORT ") + abort_type);
103 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