mirror of https://github.com/CGAL/cgal
improve debug macro
This commit is contained in:
parent
e5b9a7cddf
commit
a7edcfbd9a
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue