Commit afc76026 authored by Victor Zverovich's avatar Victor Zverovich

Update example.

parent e882db90
......@@ -2195,14 +2195,12 @@ inline void FormatDec(char *&buffer, T value) {
**Example**::
std::string FormatMessage(int id, const char *format,
void print_error(const char *file, int line, const char *format,
const fmt::ArgList &args) {
fmt::Writer w;
w.format("[{}] ", id);
w.format(format, args);
return w.str();
fmt::print("{}: {}: ", file, line);
fmt::print(format, args);
}
FMT_VARIADIC(std::string, FormatMessage, int, const char *)
FMT_VARIADIC(void, print_error, const char *, int, const char *)
\endrst
*/
#define FMT_VARIADIC(ReturnType, func, ...) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment