diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-05 23:02:38 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-05 23:02:38 +0100 |
commit | a49bfef2fb3f0ab1f662fe53cb6c72f0587827f9 (patch) | |
tree | 420f7a4901e36461400abbf5a78f305ff6f4adb7 /src/include/taler_util.h | |
parent | 7dd52a08923ccbacd737d4ed719651306744edad (diff) | |
download | exchange-a49bfef2fb3f0ab1f662fe53cb6c72f0587827f9.tar.xz |
rename for consistency
Diffstat (limited to 'src/include/taler_util.h')
-rw-r--r-- | src/include/taler_util.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/taler_util.h b/src/include/taler_util.h index 71000e8e9..cf44f0238 100644 --- a/src/include/taler_util.h +++ b/src/include/taler_util.h @@ -26,6 +26,22 @@ #include "taler_amount_lib.h" #include "taler_crypto_lib.h" +/** + * Stringify operator. + * + * @param a some expression to stringify. Must NOT be a macro. + * @return same expression as a constant string. + */ +#define TALER_S(a) #a + +/** + * Stringify operator. + * + * @param a some expression to stringify. Can be a macro. + * @return macro-expanded expression as a constant string. + */ +#define TALER_QUOTE(a) TALER_S (a) + /* Define logging functions */ #define TALER_LOG_DEBUG(...) \ |