diff --git a/src/unity.h b/src/unity.h index af2b549..9e26067 100644 --- a/src/unity.h +++ b/src/unity.h @@ -338,7 +338,6 @@ int suiteTearDown(int num_failures); #define TEST_ASSERT_NOT_EQUAL(expected, actual) UNITY_TEST_ASSERT(((expected) != (actual)), __LINE__, " Expected Not-Equal") #endif #ifdef UNITY_SHORTHAND_AS_NONE -const char UnityStrErrShorthand[]; #define TEST_ASSERT_EQUAL(expected, actual) UNITY_TEST_FAIL(__LINE__, UnityStrErrShorthand) #define TEST_ASSERT_NOT_EQUAL(expected, actual) UNITY_TEST_FAIL(__LINE__, UnityStrErrShorthand) #endif @@ -569,7 +568,6 @@ const char UnityStrErrShorthand[]; #define TEST_ASSERT_NOT_EQUAL_MESSAGE(expected, actual, message) UNITY_TEST_ASSERT(((expected) != (actual)), __LINE__, message) #endif #ifdef UNITY_SHORTHAND_AS_NONE -const char UnityStrErrShorthand[]; #define TEST_ASSERT_EQUAL_MESSAGE(expected, actual, message) UNITY_TEST_FAIL(__LINE__, UnityStrErrShorthand) #define TEST_ASSERT_NOT_EQUAL_MESSAGE(expected, actual, message) UNITY_TEST_FAIL(__LINE__, UnityStrErrShorthand) #endif diff --git a/src/unity_internals.h b/src/unity_internals.h index c2c5fa6..a3f39ca 100644 --- a/src/unity_internals.h +++ b/src/unity_internals.h @@ -679,6 +679,7 @@ extern const char UnityStrIgnore[]; extern const char UnityStrErrFloat[]; extern const char UnityStrErrDouble[]; extern const char UnityStrErr64[]; +extern const char UnityStrErrShorthand[]; /*------------------------------------------------------- * Test Running Macros