[Mesa-dev] [PATCH 1/7] mesa: Make STRINGIFY evaluate macros before stringifying.
Matt Turner
mattst88 at gmail.com
Tue Jun 10 21:57:17 PDT 2014
---
src/mesa/main/macros.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h
index 5228c3a..df6cb01 100644
--- a/src/mesa/main/macros.h
+++ b/src/mesa/main/macros.h
@@ -821,6 +821,7 @@ DIFFERENT_SIGNS(GLfloat x, GLfloat y)
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
/* Stringify */
-#define STRINGIFY(x) #x
+#define xSTRINGIFY(x) #x
+#define STRINGIFY(x) xSTRINGIFY(x)
#endif
--
1.8.3.2
More information about the mesa-dev
mailing list