NAMD
FreeEnergyAssert.h
Go to the documentation of this file.
1 
7 #if !defined(ASSERT_HPP)
8  #define ASSERT_HPP
9 
10  #undef ASSERT
11  #undef VERIFY
12  #if defined(_DEBUG)
13  void my_assert(const char* Condition, const char* FileName, int LineNumber);
14  #define ASSERT(E) if (!(E)) my_assert(#E, __FILE__, __LINE__);
15  #define VERIFY(E) if (!(E)) my_assert(#E, __FILE__, __LINE__);
16  #else
17  #define ASSERT(E)
18  #define VERIFY(E) E;
19  #endif
20 
21 #endif
void my_assert(const char *Condition, const char *FileName, int LineNumber)