refactor: Move STRINGIZE macro to macros.h

This is a move-only change.
This commit is contained in:
Hennadii Stepanov
2021-02-01 22:19:59 +02:00
parent d0d256536c
commit 12f5028d49
2 changed files with 9 additions and 7 deletions

View File

@@ -8,4 +8,11 @@
#define PASTE(x, y) x ## y
#define PASTE2(x, y) PASTE(x, y)
/**
* Converts the parameter X to a string after macro replacement on X has been performed.
* Don't merge these into one macro!
*/
#define STRINGIZE(X) DO_STRINGIZE(X)
#define DO_STRINGIZE(X) #X
#endif // BITCOIN_UTIL_MACROS_H