diff options
| author | hachem <im@hachem.wtf> | 2026-09-22 06:45:33 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-09-22 06:45:33 +0200 |
| commit | 32ee3d9f57b37723ee97c3b798be6968f98df1b1 (patch) | |
| tree | 10838a06f522a48f64645e2d31c3d72eb1a58643 /src/core/log.h | |
| parent | e321beb543311dcb591942ec42464e38cbeae0f0 (diff) | |
fix: windows support
Diffstat (limited to 'src/core/log.h')
| -rw-r--r-- | src/core/log.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/core/log.h b/src/core/log.h index 4237d1c..cc99aa1 100644 --- a/src/core/log.h +++ b/src/core/log.h @@ -144,13 +144,10 @@ namespace Donut #if defined(DONUT_DEBUG) #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, ...) {} - #define DONUT_WARN(format, ...) {} - #define DONUT_ERROR(format, ...) {} - #define DONUT_FATAL(format, ...) {} #endif +#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__) |
