nir/print: Factor variable name lookup into a helper
[mesa.git] / src / glsl / s_expression.h
index 1d4753530bcc4673ba38980183a7c501f75dcf2c..f0dffb1b2f86d35422238c386e4cf46272a38a4a 100644 (file)
@@ -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>