vendor/unity/src/unity_internals.h in ceedling-0.15.6 vs vendor/unity/src/unity_internals.h in ceedling-0.16.0
- old
+ new
@@ -507,13 +507,13 @@
//-------------------------------------------------------
// Error Strings We Might Need
//-------------------------------------------------------
-extern const char* UnityStrErrFloat;
-extern const char* UnityStrErrDouble;
-extern const char* UnityStrErr64;
+extern const char UnityStrErrFloat[];
+extern const char UnityStrErrDouble[];
+extern const char UnityStrErr64[];
//-------------------------------------------------------
// Test Running Macros
//-------------------------------------------------------
@@ -543,9 +543,13 @@
#endif
#endif
#define TEST_LINE_NUM (Unity.CurrentTestLineNumber)
#define TEST_IS_IGNORED (Unity.CurrentTestIgnored)
+#define UNITY_NEW_TEST(a) \
+ Unity.CurrentTestName = a; \
+ Unity.CurrentTestLineNumber = (UNITY_LINE_TYPE)(__LINE__); \
+ Unity.NumberOfTests++;
#ifndef UNITY_BEGIN
#define UNITY_BEGIN() UnityBegin(__FILE__)
#endif