mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 10:36:02 +00:00
AK: Fix typo in warnln_if()
This commit is contained in:
parent
11ab8ee80a
commit
dfc02f9761
Notes:
sideshowbarker
2024-07-17 17:06:28 +09:00
Author: https://github.com/AtkinsSJ
Commit: dfc02f9761
Pull-request: https://github.com/SerenityOS/serenity/pull/13137
Reviewed-by: https://github.com/bgianfo ✅
1 changed files with 4 additions and 4 deletions
|
@ -575,10 +575,10 @@ void warnln(CheckedFormatString<Parameters...>&& fmtstr, const Parameters&... pa
|
||||||
|
|
||||||
inline void warnln() { outln(stderr); }
|
inline void warnln() { outln(stderr); }
|
||||||
|
|
||||||
# define warnln_if(flag, fmt, ...) \
|
# define warnln_if(flag, fmt, ...) \
|
||||||
do { \
|
do { \
|
||||||
if constexpr (flag) \
|
if constexpr (flag) \
|
||||||
outln(fmt, ##__VA_ARGS__); \
|
warnln(fmt, ##__VA_ARGS__); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue