diff options
| author | Stefan Boberg <[email protected]> | 2023-05-11 09:49:37 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2023-05-11 09:49:37 +0200 |
| commit | 7436f22952c8e7345201faee10b266b13c5010a5 (patch) | |
| tree | ae47df4d497b9f5a0bc96435e1cf6158f11c223b /src | |
| parent | if a block is missing during gc, log an error but still continue (#289) (diff) | |
| download | zen-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.h | 2 |
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 \ |