diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-02-01 22:19:59 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-02-01 22:30:05 +0200 |
commit | 12f5028d4957bce3ba176e80527894b497c04a3b (patch) | |
tree | bfa0500f5c0140b95a22d7c11e1ef3eb9c58a1a4 /src/util/macros.h | |
parent | d0d256536cdfb1443067fb7cc0a19d647f636a5c (diff) |
refactor: Move STRINGIZE macro to macros.h
This is a move-only change.
Diffstat (limited to 'src/util/macros.h')
-rw-r--r-- | src/util/macros.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/macros.h b/src/util/macros.h index 36ea87c0fe..0887c80fd7 100644 --- a/src/util/macros.h +++ b/src/util/macros.h @@ -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 |