From c16c719647664abf7531896770c31eda1dbe7a58 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 28 Feb 2015 09:11:23 -0700 Subject: glsl: replace Elements() with ARRAY_SIZE() Acked-by: Ilia Mirkin --- src/glsl/s_expression.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/glsl/s_expression.h') 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: * - -- cgit v1.2.3