summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_dump_defines.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2016-04-26 18:10:00 -0600
committerBrian Paul <[email protected]>2016-04-28 09:04:24 -0600
commita609da60c034ab059ead213e6c25fe4d37bf7d43 (patch)
tree304c819444d2f3fa5dae43ba1ea1b51d659a23b2 /src/gallium/auxiliary/util/u_dump_defines.c
parentf365488eaaaaab8eb61bc614a105f397c5c80a6f (diff)
gallium/util: s/Elements/ARRAY_SIZE/
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_dump_defines.c')
-rw-r--r--src/gallium/auxiliary/util/u_dump_defines.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/util/u_dump_defines.c b/src/gallium/auxiliary/util/u_dump_defines.c
index 3ddc9554b50..9d831efcf51 100644
--- a/src/gallium/auxiliary/util/u_dump_defines.c
+++ b/src/gallium/auxiliary/util/u_dump_defines.c
@@ -67,9 +67,9 @@ util_dump_enum_continuous(unsigned value,
util_dump_##_name(unsigned value, boolean shortened) \
{ \
if(shortened) \
- return util_dump_enum_continuous(value, Elements(util_dump_##_name##_short_names), util_dump_##_name##_short_names); \
+ return util_dump_enum_continuous(value, ARRAY_SIZE(util_dump_##_name##_short_names), util_dump_##_name##_short_names); \
else \
- return util_dump_enum_continuous(value, Elements(util_dump_##_name##_names), util_dump_##_name##_names); \
+ return util_dump_enum_continuous(value, ARRAY_SIZE(util_dump_##_name##_names), util_dump_##_name##_names); \
}
@@ -81,12 +81,12 @@ util_dump_enum_continuous(unsigned value,
const char * \
util_dump_##_name(unsigned value, boolean shortened) \
{ \
- STATIC_ASSERT(Elements(util_dump_##_name##_names) == _count); \
- STATIC_ASSERT(Elements(util_dump_##_name##_short_names) == _count); \
+ STATIC_ASSERT(ARRAY_SIZE(util_dump_##_name##_names) == _count); \
+ STATIC_ASSERT(ARRAY_SIZE(util_dump_##_name##_short_names) == _count); \
if(shortened) \
- return util_dump_enum_continuous(value, Elements(util_dump_##_name##_short_names), util_dump_##_name##_short_names); \
+ return util_dump_enum_continuous(value, ARRAY_SIZE(util_dump_##_name##_short_names), util_dump_##_name##_short_names); \
else \
- return util_dump_enum_continuous(value, Elements(util_dump_##_name##_names), util_dump_##_name##_names); \
+ return util_dump_enum_continuous(value, ARRAY_SIZE(util_dump_##_name##_names), util_dump_##_name##_names); \
}