MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
moose::assertion::detail Namespace Reference

Functions

void assertion_failed_msg (char const *expr, char const *msg, char const *function, char const *file, long line)
 

Function Documentation

void moose::assertion::detail::assertion_failed_msg ( char const *  expr,
char const *  msg,
char const *  function,
char const *  file,
long  line 
)
inline

Definition at line 104 of file simple_assert.hpp.

References SIMPLE_ASSERT_MSG_OSTREAM.

106  {
108  << "***** Internal Program Error - assertion (" << expr << ") failed in "
109  << function << ":\n"
110  << file << '(' << line << "): " << msg << std::endl;
111  #ifdef UNDER_CE
112  // The Windows CE CRT library does not have abort() so use exit(-1) instead.
113  std::exit(-1);
114  #else
115  std::abort();
116  #endif
117  }
#define SIMPLE_ASSERT_MSG_OSTREAM