17 #ifndef GEOS_UTIL_ASSERT_H
18 #define GEOS_UTIL_ASSERT_H
20 #include <geos/export.h>
33 class GEOS_DLL Assert {
36 static void isTrue(
bool assertion,
const std::string& message);
38 static void isTrue(
bool assertion) {
39 isTrue(assertion, std::string());
43 static void equals(
const geom::Coordinate& expectedValue,
44 const geom::Coordinate& actualValue,
45 const std::string& message);
47 static void equals(
const geom::Coordinate& expectedValue,
48 const geom::Coordinate& actualValue)
50 equals(expectedValue, actualValue, std::string());
54 static void shouldNeverReachHere(
const std::string& message);
56 static void shouldNeverReachHere() { shouldNeverReachHere(std::string()); }
63 #endif // GEOS_UTIL_ASSERT_H