aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mapi/u_macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/mapi/u_macros.h')
-rw-r--r--mesalib/src/mapi/u_macros.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/mesalib/src/mapi/u_macros.h b/mesalib/src/mapi/u_macros.h
new file mode 100644
index 000000000..72345b5f1
--- /dev/null
+++ b/mesalib/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_ */