From a49bfef2fb3f0ab1f662fe53cb6c72f0587827f9 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 5 Mar 2020 23:02:38 +0100 Subject: rename for consistency --- src/include/taler_util.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/include/taler_util.h') diff --git a/src/include/taler_util.h b/src/include/taler_util.h index 71000e8e..cf44f023 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(...) \ -- cgit v1.2.3