diff options
author | Brian Paul <[email protected]> | 2015-02-28 09:11:23 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2015-03-02 08:55:30 -0700 |
commit | c16c719647664abf7531896770c31eda1dbe7a58 (patch) | |
tree | 45e8296addc08b5d1542c989e5f523208692c789 /src/glsl/s_expression.h | |
parent | 70b401029cf800f22e6c4318cfd2ab9bf118bb6c (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.h | 4 |
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> |