change: change code style to Linux style except indent.

This commit is contained in:
Mike Solar
2025-08-03 03:09:40 +08:00
parent 65ab76edc8
commit 74f73ab3be
789 changed files with 77113 additions and 68888 deletions
+9 -2
View File
@@ -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()