35 void askAssert(
const char *
const filename,
const unsigned int lineNumber)
38 static bool skipAll=
false;
40 std::cerr <<
"ASSERTION ERROR!" << std::endl;
41 std::cerr <<
"Filename: " << filename << std::endl;
42 std::cerr <<
"Line number: " << lineNumber << std::endl;
46 std::cerr <<
"\tContinuing, as previously requested" << std::endl;
52 std::cerr <<
"Do you wish to continue? - (y)es/(n)o/(a)lways -";
54 while (y !=
'n' && y !=
'y' && y!=
'a')
void askAssert(const char *, unsigned int)
Either abort program, or ask the user what to do for an assertion. depending on hardAssert setting...
void setHardAssert(bool enabled)
Do assertions cause a straight up crash (enabled), or write a mesage to stderr (disabled)? By default, hard crash.