aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2013-12-10 16:21:16 -0800
committerMatt Turner <[email protected]>2014-01-21 14:09:33 -0800
commit81d52419cfaf143d9f157a2eff148a940a05ca69 (patch)
tree2e1524f83381c31275dee19ecf7e7826fbb7446b /src/mesa/main
parent80b949f16b3461c65273bb5d0e263dfffaab400e (diff)
mesa: Add STRINGIFY macro.
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/macros.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h
index 379f7566387..dafeaa372f1 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