aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-09-16 13:44:09 +0200
committerMartin Ridgers <[email protected]>2021-09-16 14:20:52 +0200
commite0220b79488b363de6d74187f9d2f179ed4aa7ce (patch)
tree3791a6abf0f7ed81c8ac0142f67d15e1a54864d1 /zencore/include
parentUse std::fs::path::value_type instead of wchar_t for path strings (diff)
downloadzen-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.h12
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)