NAMD
FreeEnergyAssert.C
Go to the documentation of this file.
1 
7 #include "InfoStream.h"
8 #include "FreeEnergyAssert.h"
9 
10 void my_assert(const char* Condition, const char* FileName, int LineNumber) {
11  iout << std::endl << endi;
12  iout << "Assertion: " << "(" << Condition << ")," << " failed" << std::endl << endi;
13  iout << " in: " << FileName << ", " << "line: " << LineNumber << std::endl << endi;
14  iout << std::endl << endi;
15 }
#define iout
Definition: InfoStream.h:87
void my_assert(const char *Condition, const char *FileName, int LineNumber)
infostream & endi(infostream &s)
Definition: InfoStream.C:38