summaryrefslogtreecommitdiffstats
path: root/src/mapi/u_macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mapi/u_macros.h')
-rw-r--r--src/mapi/u_macros.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mapi/u_macros.h b/src/mapi/u_macros.h
new file mode 100644
index 00000000000..72345b5f156
--- /dev/null
+++ b/src/mapi/u_macros.h
@@ -0,0 +1,12 @@
+#ifndef _U_MACROS_
+#define _U_MACROS_
+
+#define _U_STRINGIFY(x) #x
+#define _U_CONCAT(x, y) x ## y
+#define _U_CONCAT_STR(x, y) #x#y
+
+#define U_STRINGIFY(x) _U_STRINGIFY(x)
+#define U_CONCAT(x, y) _U_CONCAT(x, y)
+#define U_CONCAT_STR(x, y) _U_CONCAT_STR(x, y)
+
+#endif /* _U_MACROS_ */