From 757231cc6e777b8f4717d1467ef7efa01c7fde15 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Wed, 3 Jan 2018 17:41:16 +0000 Subject: Add the fmt library (#4065) * Replaces AppendVPrintf with fmt::sprintf * fmt::ArgList now used as a type safe alternative to varargs. * Removed SIZE_T_FMT compatibility macros. fmt::sprintf is fully portable and supports %zu. * Adds FLOG functions to log with fmt's native formatting style. --- src/CommandOutput.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/CommandOutput.h') diff --git a/src/CommandOutput.h b/src/CommandOutput.h index c9aa053c0..8ae50d221 100644 --- a/src/CommandOutput.h +++ b/src/CommandOutput.h @@ -16,7 +16,8 @@ public: virtual ~cCommandOutputCallback() {} // Force a virtual destructor in subclasses /** Syntax sugar function, calls Out() with Printf()-ed parameters; appends a newline" */ - void Out(const char * a_Fmt, ...) FORMATSTRING(2, 3); + void Out(const char * a_Fmt, fmt::ArgList); + FMT_VARIADIC(void, Out, const char *) /** Called when the command wants to output anything; may be called multiple times */ virtual void Out(const AString & a_Text) = 0; -- cgit v1.2.3