提交 e4a99b5f 编写于 作者: M Mark VanderVoord

Merge pull request #141 from adiorion/cpp-fixes

Fix some C++ compatibility issues
......@@ -1231,9 +1231,9 @@ void UnityIgnore(const char* msg, const UNITY_LINE_TYPE line)
UNITY_WEAK_ATTRIBUTE void tearDown(void) { }
#elif defined(UNITY_WEAK_PRAGMA)
# pragma weak setUp
void setUp(void);
void setUp(void) { }
# pragma weak tearDown
void tearDown(void);
void tearDown(void) { }
#else
void setUp(void);
void tearDown(void);
......
......@@ -8,8 +8,16 @@
#define UNITY_FRAMEWORK_H
#define UNITY
#ifdef __cplusplus
extern "C"
{
#endif
#include "unity_internals.h"
void setUp(void);
void tearDown(void);
//-------------------------------------------------------
// Configuration Options
//-------------------------------------------------------
......@@ -271,4 +279,7 @@
#define TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE((actual), __LINE__, (message))
//end of UNITY_FRAMEWORK_H
#ifdef __cplusplus
}
#endif
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册