diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-02-16 14:51:11 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2022-02-16 14:59:20 +0200 |
commit | 1633f5ec8846408182cceb60dc88f022635f4002 (patch) | |
tree | f2d67f2417517780af0894e6311c5756f4be988d /src/test/util | |
parent | 1e8aa02ec5cc2819c67ef40a7573c4b23a4c11cc (diff) |
util, refactor: Add UNIQUE_NAME helper macro
This change replaces repetitive code with a helper macro.
Diffstat (limited to 'src/test/util')
-rw-r--r-- | src/test/util/logging.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/util/logging.h b/src/test/util/logging.h index ebe0ecf623..f477088392 100644 --- a/src/test/util/logging.h +++ b/src/test/util/logging.h @@ -36,6 +36,6 @@ public: ~DebugLogHelper() { check_found(); } }; -#define ASSERT_DEBUG_LOG(message) DebugLogHelper PASTE2(debugloghelper, __COUNTER__)(message) +#define ASSERT_DEBUG_LOG(message) DebugLogHelper UNIQUE_NAME(debugloghelper)(message) #endif // BITCOIN_TEST_UTIL_LOGGING_H |