Tests: Simplify macros
using namespace std;
using namespace kdb;
-#define succeed_if(x, y) \
- do \
- { \
- ASSERT_TRUE (x) << y; \
- } while (0)
-#define exit_if_fail(x, y) \
- do \
- { \
- ASSERT_TRUE (x) << y; \
- } while (0)
-
-#define succeed_if_same(x, y, message) \
- do \
- { \
- ASSERT_EQ (x, y) << message; \
- } while (0)
+#define succeed_if(x, y) ASSERT_TRUE (x) << y;
+#define exit_if_fail(x, y) ASSERT_TRUE (x) << y;
+#define succeed_if_same(x, y, message) ASSERT_EQ (x, y) << message;
#endif
