ImFormatString, ImFormatStringV(): clarifying specs so that passing a NULL buffer should return the desired length. (#1038)

This commit is contained in:
omar
2017-10-24 20:48:29 +02:00
parent 8fd5620277
commit 1f3372b7f1
2 changed files with 9 additions and 5 deletions

View File

@ -2359,6 +2359,7 @@ struct ExampleAppConsole
void AddLog(const char* fmt, ...) IM_FMTARGS(2)
{
// FIXME-OPT
char buf[1024];
va_list args;
va_start(args, fmt);