[Mesa-dev] [PATCH 03/14] mesa: Move debug type/severity enums to mesa core.

Jordan Justen jljusten at gmail.com
Sat Feb 23 11:34:37 PST 2013


On Fri, Feb 22, 2013 at 7:52 PM, Eric Anholt <eric at anholt.net> wrote:
> +static enum mesa_debug_type
> +gl_enum_to_debug_type(GLenum e)
> +{
> +   int i;
> +
> +   for (i = 0; i < Elements(debug_type_enums); i++) {

I guess we have both Elements and ARRAY_SIZE. Should we try to merge these?

Elements appears to be used more, but doesn't ARRAY_SIZE follow the
coding style better?

-Jordan


More information about the mesa-dev mailing list