mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-25 18:21:20 +08:00
Added some documentation for the helper function.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user