change: change code style to Linux style except indent.
This commit is contained in:
+9
-2
@@ -22,8 +22,15 @@
|
||||
|
||||
#define OLIVE_TEST_SUCCESS -1
|
||||
|
||||
#define OLIVE_ASSERT(x) if (!(x)) return __LINE__
|
||||
#define OLIVE_ASSERT_EQUAL(x, y) if (x != y) {std::cout << " - Equal assert failed: " << x << " != " << y; return __LINE__;}void()
|
||||
#define OLIVE_ASSERT(x) \
|
||||
if (!(x)) \
|
||||
return __LINE__
|
||||
#define OLIVE_ASSERT_EQUAL(x, y) \
|
||||
if (x != y) { \
|
||||
std::cout << " - Equal assert failed: " << x << " != " << y; \
|
||||
return __LINE__; \
|
||||
} \
|
||||
void()
|
||||
#define OLIVE_TEST_END return OLIVE_TEST_SUCCESS
|
||||
|
||||
#define OLIVE_ADD_TEST(x) int Test##x()
|
||||
|
||||
Reference in New Issue
Block a user