TF++, Miscellaneous classes and modules in C++:

◆ report_violation()

void tfxx::error::report_violation ( const char *  message,
const char *  file,
const int &  line,
const char *  condition 
)

report violation of assertion

report violation of condition

Parameters
messagemessage of type char*
filename of source code file
linesource code line number
conditionassert condition

Definition at line 141 of file error.cc.

145  {
146  std::cerr << std::endl;
147  std::cerr << "VIOLATION of condition: " << condition << std::endl;
148  std::cerr << "* in " << file << " at line " << line << std::endl;
149  std::cerr << "* message: " << message << std::endl;
150  }