From 723b9fee53772fa2f820f2915d8feadc5d277a02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20S=C5=82awomir=20K=C5=91m=C5=B1ves?= <43279628+sardior@users.noreply.github.com> Date: Thu, 8 Oct 2020 00:55:47 +0200 Subject: [PATCH] Update unity.c UNITY_EXCLUDE_DETAILS caused a compile error here due to UNITY_DETAIL{1,2}_NAME declaration already being skipped. --- src/unity.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/unity.c b/src/unity.c index be6eaf7..fef1d57 100644 --- a/src/unity.c +++ b/src/unity.c @@ -67,9 +67,10 @@ static const char PROGMEM UnityStrBreaker[] = "------------------ static const char PROGMEM UnityStrResultsTests[] = " Tests "; static const char PROGMEM UnityStrResultsFailures[] = " Failures "; static const char PROGMEM UnityStrResultsIgnored[] = " Ignored "; +#ifndef UNITY_EXCLUDE_DETAILS static const char PROGMEM UnityStrDetail1Name[] = UNITY_DETAIL1_NAME " "; static const char PROGMEM UnityStrDetail2Name[] = " " UNITY_DETAIL2_NAME " "; - +#endif /*----------------------------------------------- * Pretty Printers & Test Result Output Handlers *-----------------------------------------------*/