Mesa (master): mesa: Add STRINGIFY macro.
Matt Turner
mattst88 at kemper.freedesktop.org
Tue Jan 21 22:26:43 UTC 2014
Module: Mesa
Branch: master
Commit: 81d52419cfaf143d9f157a2eff148a940a05ca69
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=81d52419cfaf143d9f157a2eff148a940a05ca69
Author: Matt Turner <mattst88 at gmail.com>
Date: Tue Dec 10 16:21:16 2013 -0800
mesa: Add STRINGIFY macro.
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
---
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
More information about the mesa-commit
mailing list