diff options
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(...) \ |