mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-12-16 12:28:39 +08:00
Update documentation.
Add UNITY_PRINT_TEST_CONTEXT (thanks @jlindgren90 !) Replaces PR #473
This commit is contained in:
@@ -566,6 +566,10 @@ static void UnityAddMsgIfSpecified(const char* msg)
|
||||
if (msg)
|
||||
{
|
||||
UnityPrint(UnityStrSpacer);
|
||||
|
||||
#ifdef UNITY_PRINT_TEST_CONTEXT
|
||||
UNITY_PRINT_TEST_CONTEXT();
|
||||
#endif
|
||||
#ifndef UNITY_EXCLUDE_DETAILS
|
||||
if (Unity.CurrentDetail1)
|
||||
{
|
||||
@@ -1760,6 +1764,9 @@ void UnityFail(const char* msg, const UNITY_LINE_TYPE line)
|
||||
{
|
||||
UNITY_OUTPUT_CHAR(':');
|
||||
|
||||
#ifdef UNITY_PRINT_TEST_CONTEXT
|
||||
UNITY_PRINT_TEST_CONTEXT();
|
||||
#endif
|
||||
#ifndef UNITY_EXCLUDE_DETAILS
|
||||
if (Unity.CurrentDetail1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user