summaryrefslogtreecommitdiff
path: root/src/include/taler_util.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-03-05 23:02:38 +0100
committerChristian Grothoff <christian@grothoff.org>2020-03-05 23:02:38 +0100
commita49bfef2fb3f0ab1f662fe53cb6c72f0587827f9 (patch)
tree420f7a4901e36461400abbf5a78f305ff6f4adb7 /src/include/taler_util.h
parent7dd52a08923ccbacd737d4ed719651306744edad (diff)
downloadexchange-a49bfef2fb3f0ab1f662fe53cb6c72f0587827f9.tar.gz
exchange-a49bfef2fb3f0ab1f662fe53cb6c72f0587827f9.tar.bz2
exchange-a49bfef2fb3f0ab1f662fe53cb6c72f0587827f9.zip
rename for consistency
Diffstat (limited to 'src/include/taler_util.h')
-rw-r--r--src/include/taler_util.h16
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(...) \