aboutsummaryrefslogtreecommitdiff
path: root/src/core/log.h
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-08-24 19:07:35 +0200
committerhachem <im@hachem.wtf>2026-08-24 19:07:35 +0200
commit0158611e08cebd24518b1439904905d5dacbdf35 (patch)
treee2f16d43952fed5c30532c1f4f1fb04d4ca581d2 /src/core/log.h
parenta34c49f103c8950a57687ea3d866c244d95b4414 (diff)
[chore]: -Wall -Wextra -Werror -pedantic
Diffstat (limited to 'src/core/log.h')
-rw-r--r--src/core/log.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/log.h b/src/core/log.h
index db6b4b4..4237d1c 100644
--- a/src/core/log.h
+++ b/src/core/log.h
@@ -142,11 +142,11 @@ namespace Donut
}
#if defined(DONUT_DEBUG)
- #define DONUT_TRACE(format, ...) ::Donut::Logger::trace(format, ##__VA_ARGS__)
- #define DONUT_INFO(format, ...) ::Donut::Logger::info(format, ##__VA_ARGS__)
- #define DONUT_WARN(format, ...) ::Donut::Logger::warn(format, ##__VA_ARGS__)
- #define DONUT_ERROR(format, ...) ::Donut::Logger::error(format, ##__VA_ARGS__)
- #define DONUT_FATAL(format, ...) ::Donut::Logger::fatal(format, ##__VA_ARGS__)
+ #define DONUT_TRACE(format, ...) ::Donut::Logger::trace(format __VA_OPT__(,) __VA_ARGS__)
+ #define DONUT_INFO(format, ...) ::Donut::Logger::info(format __VA_OPT__(,) __VA_ARGS__)
+ #define DONUT_WARN(format, ...) ::Donut::Logger::warn(format __VA_OPT__(,) __VA_ARGS__)
+ #define DONUT_ERROR(format, ...) ::Donut::Logger::error(format __VA_OPT__(,) __VA_ARGS__)
+ #define DONUT_FATAL(format, ...) ::Donut::Logger::fatal(format __VA_OPT__(,) __VA_ARGS__)
#else
#define DONUT_TRACE(format, ...) {}
#define DONUT_INFO(format, ...) {}