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 | ab9c2a73efb61a4ee553d728bbdcb84dc6ed91e6 (patch) | |
| tree | 76f5233661bfc7efc99d96dec7659b83e463fb59 /src/core/log.h | |
| parent | 5c8a5cd96ec369cdb5f61a31b4004c1f412cec09 (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, ...) {} |
