aboutsummaryrefslogtreecommitdiff
path: root/src/test/util
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-02-16 14:51:11 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2022-02-16 14:59:20 +0200
commit1633f5ec8846408182cceb60dc88f022635f4002 (patch)
treef2d67f2417517780af0894e6311c5756f4be988d /src/test/util
parent1e8aa02ec5cc2819c67ef40a7573c4b23a4c11cc (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.h2
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