diff options
| author | Martin Ridgers <[email protected]> | 2021-09-16 14:19:48 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-09-16 14:20:52 +0200 |
| commit | 27c271e14e7097438999c5968e64e5cf612377dc (patch) | |
| tree | 67989d9a0f156b6e4497d9728666a4c065581177 /zencore/include | |
| parent | Fixed compile error if ZEN_WARN and co.'s __VA_ARGS__ was empty (diff) | |
| download | zen-27c271e14e7097438999c5968e64e5cf612377dc.tar.xz zen-27c271e14e7097438999c5968e64e5cf612377dc.zip | |
Whitespace adjustments to multi-line macros
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/logging.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/zencore/include/zencore/logging.h b/zencore/include/zencore/logging.h index 290022e2a..412a39415 100644 --- a/zencore/include/zencore/logging.h +++ b/zencore/include/zencore/logging.h @@ -39,44 +39,44 @@ using zen::Log; // Helper macros for logging -#define ZEN_TRACE(fmtstr, ...) \ - do \ - { \ - using namespace std::literals; \ +#define ZEN_TRACE(fmtstr, ...) \ + do \ + { \ + using namespace std::literals; \ Log().trace(fmtstr##sv, ##__VA_ARGS__);\ } while (false) -#define ZEN_DEBUG(fmtstr, ...) \ - do \ - { \ - using namespace std::literals; \ +#define ZEN_DEBUG(fmtstr, ...) \ + do \ + { \ + using namespace std::literals; \ Log().debug(fmtstr##sv, ##__VA_ARGS__);\ } while (false) -#define ZEN_INFO(fmtstr, ...) \ - do \ - { \ - using namespace std::literals; \ +#define ZEN_INFO(fmtstr, ...) \ + do \ + { \ + using namespace std::literals; \ Log().info(fmtstr##sv, ##__VA_ARGS__);\ } while (false) -#define ZEN_WARN(fmtstr, ...) \ - do \ - { \ - using namespace std::literals; \ - Log().warn(fmtstr##sv, ##__VA_ARGS__);\ - } while (false) - -#define ZEN_ERROR(fmtstr, ...) \ +#define ZEN_WARN(fmtstr, ...) \ do \ { \ using namespace std::literals; \ + Log().warn(fmtstr##sv, ##__VA_ARGS__);\ + } while (false) + +#define ZEN_ERROR(fmtstr, ...) \ + do \ + { \ + using namespace std::literals; \ Log().error(fmtstr##sv, ##__VA_ARGS__);\ } while (false) -#define ZEN_CRITICAL(fmtstr, ...) \ - do \ - { \ - using namespace std::literals; \ +#define ZEN_CRITICAL(fmtstr, ...) \ + do \ + { \ + using namespace std::literals; \ Log().critical(fmtstr##sv, ##__VA_ARGS__);\ } while (false) |