mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-10-30 20:16:12 +00:00
Merge pull request #141 from adiorion/cpp-fixes
Fix some C++ compatibility issues
This commit is contained in:
+2
-2
@@ -1231,9 +1231,9 @@ void UnityIgnore(const char* msg, const UNITY_LINE_TYPE line)
|
|||||||
UNITY_WEAK_ATTRIBUTE void tearDown(void) { }
|
UNITY_WEAK_ATTRIBUTE void tearDown(void) { }
|
||||||
#elif defined(UNITY_WEAK_PRAGMA)
|
#elif defined(UNITY_WEAK_PRAGMA)
|
||||||
# pragma weak setUp
|
# pragma weak setUp
|
||||||
void setUp(void);
|
void setUp(void) { }
|
||||||
# pragma weak tearDown
|
# pragma weak tearDown
|
||||||
void tearDown(void);
|
void tearDown(void) { }
|
||||||
#else
|
#else
|
||||||
void setUp(void);
|
void setUp(void);
|
||||||
void tearDown(void);
|
void tearDown(void);
|
||||||
|
|||||||
+11
@@ -8,8 +8,16 @@
|
|||||||
#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"
|
||||||
|
|
||||||
|
void setUp(void);
|
||||||
|
void tearDown(void);
|
||||||
|
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
// Configuration Options
|
// 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))
|
#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
|
||||||
|
|||||||
Reference in New Issue
Block a user