aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-11-30 16:22:22 +0100
committerMartin Ridgers <[email protected]>2021-12-01 09:31:50 +0100
commitbdba1ee2c46dc37d0f5995e9c8a6c55a4c5f4918 (patch)
tree1202576f5ebf68e7b0c984ae5a441b97f2d55ce5 /zencore/include
parentFixed unused parameter warning (diff)
downloadzen-bdba1ee2c46dc37d0f5995e9c8a6c55a4c5f4918.tar.xz
zen-bdba1ee2c46dc37d0f5995e9c8a6c55a4c5f4918.zip
ZEN_CONSOLE() without and VA_ARGS wouldn't compile with GCC
Diffstat (limited to 'zencore/include')
-rw-r--r--zencore/include/zencore/logging.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/zencore/include/zencore/logging.h b/zencore/include/zencore/logging.h
index 0b080cb9d..468e5d6e2 100644
--- a/zencore/include/zencore/logging.h
+++ b/zencore/include/zencore/logging.h
@@ -82,9 +82,9 @@ using zen::Log;
Log().critical(fmtstr##sv, ##__VA_ARGS__); \
} while (false)
-#define ZEN_CONSOLE(fmtstr, ...) \
- do \
- { \
- using namespace std::literals; \
- ConsoleLog().info(fmtstr##sv, __VA_ARGS__); \
+#define ZEN_CONSOLE(fmtstr, ...) \
+ do \
+ { \
+ using namespace std::literals; \
+ ConsoleLog().info(fmtstr##sv, ##__VA_ARGS__); \
} while (false)