improve debug macro

This commit is contained in:
Sébastien Loriot 2015-04-27 10:20:32 +02:00
parent e5b9a7cddf
commit a7edcfbd9a
1 changed files with 2 additions and 0 deletions

View File

@ -8,5 +8,7 @@ void CHECK_EQUAL(const FT& a, const FT2& b)
template <typename FT, typename FT2>
void CHECK_CLOSE(const FT& a, const FT2& b, const FT& eps)
{
if ( !(CGAL::abs(a-b) < eps) )
std::cerr << "ERROR: difference (" << CGAL::abs(a-b) << ") is larger than eps (" << eps << ").\n";
assert(CGAL::abs(a-b) < eps);
}