diff options
| author | hachem <im@hachem.wtf> | 2026-08-24 19:07:35 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-08-24 19:07:35 +0200 |
| commit | 0158611e08cebd24518b1439904905d5dacbdf35 (patch) | |
| tree | e2f16d43952fed5c30532c1f4f1fb04d4ca581d2 /src/core/log.h | |
| parent | a34c49f103c8950a57687ea3d866c244d95b4414 (diff) | |
[chore]: -Wall -Wextra -Werror -pedantic
Diffstat (limited to 'src/core/log.h')
| -rw-r--r-- | src/core/log.h | 10 |
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, ...) {} |
