aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-05-11 09:49:37 +0200
committerStefan Boberg <[email protected]>2023-05-11 09:49:37 +0200
commit7436f22952c8e7345201faee10b266b13c5010a5 (patch)
treeae47df4d497b9f5a0bc96435e1cf6158f11c223b /src
parentif a block is missing during gc, log an error but still continue (#289) (diff)
downloadzen-7436f22952c8e7345201faee10b266b13c5010a5.tar.xz
zen-7436f22952c8e7345201faee10b266b13c5010a5.zip
ZEN_LOG_SCOPE compile fix
previous version would fail with multiple instances in the same scope
Diffstat (limited to 'src')
-rw-r--r--src/zencore/include/zencore/logging.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zencore/include/zencore/logging.h b/src/zencore/include/zencore/logging.h
index 56f13e1c2..c40af1310 100644
--- a/src/zencore/include/zencore/logging.h
+++ b/src/zencore/include/zencore/logging.h
@@ -186,7 +186,7 @@ private:
std::string_view EmitActivitiesForLogging(StringBuilderBase& OutString);
-#define ZEN_LOG_SCOPE(...) ScopedLazyActivity Activity$##__LINE__([&](StringBuilderBase& Out) { Out << fmt::format(__VA_ARGS__); })
+#define ZEN_LOG_SCOPE(...) ScopedLazyActivity $Activity##__LINE__([&](StringBuilderBase& Out) { Out << fmt::format(__VA_ARGS__); })
#define ZEN_SCOPED_ERROR(fmtstr, ...) \
do \