mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-03 04:12:27 +00:00
Fixed use of WIN32 needs to be _WIN32.
Change-Id: Ie1f88ac5613cc09ed1074608dd6517ae20c7973d
This commit is contained in:
@@ -1240,7 +1240,7 @@ void TestError_(const char *src, const char *error_substr, const char *file,
|
|||||||
TestError_(src, error_substr, false, file, line, func);
|
TestError_(src, error_substr, false, file, line, func);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef _WIN32
|
||||||
# define TestError(src, ...) \
|
# define TestError(src, ...) \
|
||||||
TestError_(src, __VA_ARGS__, __FILE__, __LINE__, __FUNCTION__)
|
TestError_(src, __VA_ARGS__, __FILE__, __LINE__, __FUNCTION__)
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
#define TEST_NOTNULL(exp) TestEq(exp == NULL, false, #exp, __FILE__, __LINE__)
|
#define TEST_NOTNULL(exp) TestEq(exp == NULL, false, #exp, __FILE__, __LINE__)
|
||||||
#define TEST_EQ_STR(exp, val) TestEqStr(exp, val, #exp, __FILE__, __LINE__)
|
#define TEST_EQ_STR(exp, val) TestEqStr(exp, val, #exp, __FILE__, __LINE__)
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef _WIN32
|
||||||
#define TEST_ASSERT_FUNC(exp) TestEq(exp, true, #exp, __FILE__, __LINE__, __FUNCTION__)
|
#define TEST_ASSERT_FUNC(exp) TestEq(exp, true, #exp, __FILE__, __LINE__, __FUNCTION__)
|
||||||
#define TEST_EQ_FUNC(exp, val) TestEq(exp, val, #exp, __FILE__, __LINE__, __FUNCTION__)
|
#define TEST_EQ_FUNC(exp, val) TestEq(exp, val, #exp, __FILE__, __LINE__, __FUNCTION__)
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user