提交 4f8656f6 编写于 作者: F Fabian Zahn

Added some documentation for the helper function.

上级 95ccc6ed
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册