[Mesa-dev] [PATCH 03/16] mesa: Add STRINGIFY macro.

Matt Turner mattst88 at gmail.com
Thu Dec 19 13:40:17 PST 2013


---
 src/mesa/main/macros.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h
index 379f756..dafeaa3 100644
--- a/src/mesa/main/macros.h
+++ b/src/mesa/main/macros.h
@@ -809,5 +809,7 @@ DIFFERENT_SIGNS(GLfloat x, GLfloat y)
 /* Compute the size of an array */
 #define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
 
+/* Stringify */
+#define STRINGIFY(x) #x
 
 #endif
-- 
1.8.3.2



More information about the mesa-dev mailing list