summaryrefslogtreecommitdiffstats
path: root/src/glsl/s_expression.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-02-28 09:11:23 -0700
committerBrian Paul <[email protected]>2015-03-02 08:55:30 -0700
commitc16c719647664abf7531896770c31eda1dbe7a58 (patch)
tree45e8296addc08b5d1542c989e5f523208692c789 /src/glsl/s_expression.h
parent70b401029cf800f22e6c4318cfd2ab9bf118bb6c (diff)
glsl: replace Elements() with ARRAY_SIZE()
Acked-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/glsl/s_expression.h')
-rw-r--r--src/glsl/s_expression.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/glsl/s_expression.h b/src/glsl/s_expression.h
index 1d4753530bc..f0dffb1b2f8 100644
--- a/src/glsl/s_expression.h
+++ b/src/glsl/s_expression.h
@@ -39,8 +39,8 @@
#define SX_AS_INT(x) SX_AS_(int, x)
/* Pattern matching macros */
-#define MATCH(list, pat) s_match(list, Elements(pat), pat, false)
-#define PARTIAL_MATCH(list, pat) s_match(list, Elements(pat), pat, true)
+#define MATCH(list, pat) s_match(list, ARRAY_SIZE(pat), pat, false)
+#define PARTIAL_MATCH(list, pat) s_match(list, ARRAY_SIZE(pat), pat, true)
/* For our purposes, S-Expressions are:
* - <int>