mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-02 01:04:43 +02:00
util, refactor: Add UNIQUE_NAME helper macro
This change replaces repetitive code with a helper macro.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user