提交 bc853383 编写于 作者: A Andy Isaacson

add C++ guards in unity.h

上级 e8968304
...@@ -8,6 +8,11 @@ ...@@ -8,6 +8,11 @@
#define UNITY_FRAMEWORK_H #define UNITY_FRAMEWORK_H
#define UNITY #define UNITY
#ifdef __cplusplus
extern "C"
{
#endif
#include "unity_internals.h" #include "unity_internals.h"
//------------------------------------------------------- //-------------------------------------------------------
...@@ -271,4 +276,7 @@ ...@@ -271,4 +276,7 @@
#define TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE_MESSAGE(actual, message) UNITY_TEST_ASSERT_DOUBLE_IS_NOT_DETERMINATE((actual), __LINE__, (message)) #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 //end of UNITY_FRAMEWORK_H
#ifdef __cplusplus
}
#endif
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册