AK: Fix typo in warnln_if()

This commit is contained in:
Sam Atkins 2022-03-19 17:07:31 +00:00 committed by Brian Gianforcaro
parent 11ab8ee80a
commit dfc02f9761
Notes: sideshowbarker 2024-07-17 17:06:28 +09:00

View file

@ -575,10 +575,10 @@ void warnln(CheckedFormatString<Parameters...>&& fmtstr, const Parameters&... pa
inline void warnln() { outln(stderr); }
# define warnln_if(flag, fmt, ...) \
do { \
if constexpr (flag) \
outln(fmt, ##__VA_ARGS__); \
# define warnln_if(flag, fmt, ...) \
do { \
if constexpr (flag) \
warnln(fmt, ##__VA_ARGS__); \
} while (0)
#endif