mirror of
https://github.com/fmtlib/fmt.git
synced 2026-04-30 19:09:22 +08:00
wrap macro arguments in parentheses for robustness (#4681)
Co-authored-by: Bernd Petrovitsch <bernd@sysprog.at>
This commit is contained in:
parent
8d3f731763
commit
82553a7a5b
@ -170,7 +170,7 @@ typedef enum {} fmt_signed_char;
|
||||
|
||||
# define fmt_format(buffer, size, fmt, ...) \
|
||||
fmt_vformat( \
|
||||
buffer, size, fmt, \
|
||||
(buffer), (size), (fmt), \
|
||||
(fmt_arg[]){{fmt_int}, FMT_MAP(FMT_MAKE_ARG, ##__VA_ARGS__)} + 1, \
|
||||
FMT_NARG(__VA_ARGS__))
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user