11 #ifndef _Proto_MAYDAY_H_ 12 #define _Proto_MAYDAY_H_ 13 #include "Proto_parstream.H" 15 #define CH_DEFAULT_ERROR_CODE 255 27 template <
typename T=
void>
32 static bool s_debugSpew;
34 [[noreturn]]
inline static void Error(
const char *
const a_msg =
m_nullString,
int m_exitCode = CH_DEFAULT_ERROR_CODE);
44 static const char *
const version;
50 #include "implem/Proto_MayDayImplem.H" static void Abort(const char *const a_msg=m_nullString)
Print out message to cerr and exit via abort() (if serial) or MPI_Abort() (if parallel).
Definition: Proto_MayDay.H:80
static void Warning(const char *const a_msg=m_nullString)
Print out message to cerr and continue.
Definition: Proto_MayDay.H:93
static const char *const m_nullString
A null string used as a default argument by the other member functions.
Definition: Proto_MayDay.H:48
Error-reporting Functions.
Definition: Proto_MayDay.H:28
static void Error(const char *const a_msg=m_nullString, int m_exitCode=CH_DEFAULT_ERROR_CODE)
Print out message to cerr and exit with the specified exit code.
Definition: Proto_MayDay.H:67
Definition: Proto_Box.H:11