mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-26 03:17:59 +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
|
#ifdef UNITY_OUTPUT_COLOR
|
||||||
static UNITY_UINT UnityPrintAnsiEscapeString(const char* string)
|
static UNITY_UINT UnityPrintAnsiEscapeString(const char* string)
|
||||||
{
|
{
|
||||||
@ -209,7 +210,8 @@ void UnityPrintFormatted(const char* format, ...)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 's':
|
case 's':
|
||||||
{ const char * string = va_arg(va, const char *);
|
{
|
||||||
|
const char * string = va_arg(va, const char *);
|
||||||
UnityPrint(string);
|
UnityPrint(string);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -220,7 +222,7 @@ void UnityPrintFormatted(const char* format, ...)
|
|||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
/* print the unknown character */
|
/* print the unknown format character */
|
||||||
UNITY_OUTPUT_CHAR('%');
|
UNITY_OUTPUT_CHAR('%');
|
||||||
UnityPrintChar(pch);
|
UnityPrintChar(pch);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user