Re: [Mesa-dev] [PATCH] mesa: add STATIC_ASSERT() macro for compile-time assertions

2011-11-29 Thread Jose Fonseca
Brian, The whole series looks a nice cleanup to me. I haven't tried to compile this on MSVC, but it looks ordinary C, so it should be alright. Jose - Original Message - This can be used to check that tables have the right number of entries, etc. at compile-time. This will

[Mesa-dev] [PATCH] mesa: add STATIC_ASSERT() macro for compile-time assertions

2011-11-28 Thread Brian Paul
This can be used to check that tables have the right number of entries, etc. at compile-time. This will hopefully catch things that are missed if particular drivers aren't tested, for example. v2: Simplify the macro to omit the extra line number info (the compiler already indicates the line