mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
ImFormatString, ImFormatStringV(): clarifying specs so that passing a NULL buffer should return the desired length. (#1038)
This commit is contained in:
parent
8fd5620277
commit
1f3372b7f1
2 changed files with 9 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue