Added some documentation for the helper function.

This commit is contained in:
Fabian Zahn
2019-01-24 19:21:08 +01:00
parent 95ccc6edc1
commit 4f8656f658

View File

@ -98,6 +98,7 @@ static void UnityPrintChar(const char* pch)
}
/*-----------------------------------------------*/
/* Local helper function to print ANSI escape strings e.g. "\033[42m". */
#ifdef UNITY_OUTPUT_COLOR
static UNITY_UINT UnityPrintAnsiEscapeString(const char* string)
{
@ -209,7 +210,8 @@ void UnityPrintFormatted(const char* format, ...)
break;
}
case 's':
{ const char * string = va_arg(va, const char *);
{
const char * string = va_arg(va, const char *);
UnityPrint(string);
break;
}
@ -220,7 +222,7 @@ void UnityPrintFormatted(const char* format, ...)
}
default:
{
/* print the unknown character */
/* print the unknown format character */
UNITY_OUTPUT_CHAR('%');
UnityPrintChar(pch);
break;