diff options
| author | Martin Ridgers <[email protected]> | 2021-09-16 13:44:09 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-09-16 14:20:52 +0200 |
| commit | e0220b79488b363de6d74187f9d2f179ed4aa7ce (patch) | |
| tree | 3791a6abf0f7ed81c8ac0142f67d15e1a54864d1 /zencore/include | |
| parent | Use std::fs::path::value_type instead of wchar_t for path strings (diff) | |
| download | zen-e0220b79488b363de6d74187f9d2f179ed4aa7ce.tar.xz zen-e0220b79488b363de6d74187f9d2f179ed4aa7ce.zip | |
Fixed compile error if ZEN_WARN and co.'s __VA_ARGS__ was empty
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/logging.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/zencore/include/zencore/logging.h b/zencore/include/zencore/logging.h index 8e6b3a244..290022e2a 100644 --- a/zencore/include/zencore/logging.h +++ b/zencore/include/zencore/logging.h @@ -43,40 +43,40 @@ using zen::Log; do \ { \ using namespace std::literals; \ - Log().trace(fmtstr##sv, __VA_ARGS__); \ + Log().trace(fmtstr##sv, ##__VA_ARGS__);\ } while (false) #define ZEN_DEBUG(fmtstr, ...) \ do \ { \ using namespace std::literals; \ - Log().debug(fmtstr##sv, __VA_ARGS__); \ + Log().debug(fmtstr##sv, ##__VA_ARGS__);\ } while (false) #define ZEN_INFO(fmtstr, ...) \ do \ { \ using namespace std::literals; \ - Log().info(fmtstr##sv, __VA_ARGS__); \ + Log().info(fmtstr##sv, ##__VA_ARGS__);\ } while (false) #define ZEN_WARN(fmtstr, ...) \ do \ { \ using namespace std::literals; \ - Log().warn(fmtstr##sv, __VA_ARGS__); \ + Log().warn(fmtstr##sv, ##__VA_ARGS__);\ } while (false) #define ZEN_ERROR(fmtstr, ...) \ do \ { \ using namespace std::literals; \ - Log().error(fmtstr##sv, __VA_ARGS__); \ + Log().error(fmtstr##sv, ##__VA_ARGS__);\ } while (false) #define ZEN_CRITICAL(fmtstr, ...) \ do \ { \ using namespace std::literals; \ - Log().critical(fmtstr##sv, __VA_ARGS__); \ + Log().critical(fmtstr##sv, ##__VA_ARGS__);\ } while (false) |