refactor: consolidate PASTE macros

This commit is contained in:
James O'Beirne
2019-09-25 10:55:52 -04:00
parent 6e431296da
commit 0d86f4d3da
3 changed files with 13 additions and 3 deletions

11
src/util/macros.h Normal file
View File

@@ -0,0 +1,11 @@
// Copyright (c) 2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_UTIL_MACROS_H
#define BITCOIN_UTIL_MACROS_H
#define PASTE(x, y) x ## y
#define PASTE2(x, y) PASTE(x, y)
#endif // BITCOIN_UTIL_MACROS_H