[Mesa-dev] [RFC 03/21] mesa/extensions: Wrap array entries in macros

Marek Olšák maraeo at gmail.com
Tue Oct 20 08:16:28 PDT 2015


Also, the FIXME comment should be on its own line.

Marek

On Tue, Oct 20, 2015 at 5:14 PM, Marek Olšák <maraeo at gmail.com> wrote:
> On Tue, Oct 20, 2015 at 4:31 PM, Erik Faye-Lund <kusmabite at gmail.com> wrote:
>> On Tue, Oct 20, 2015 at 12:36 AM, Nanley Chery <nanleychery at gmail.com> wrote:
>>> From: Nanley Chery <nanley.g.chery at intel.com>
>>>
>>> -   { "GL_SUN_multi_draw_arrays",                   o(dummy_true),                              GLL,            1999 },
>>> +#define EXT(name_str, driver_cap, api_flags, yyyy) \
>>> +        { .name = "GL_" #name_str, .offset = o(driver_cap), .api_set = api_flags, .year = yyyy},
>>
>> I suspect that using designated initializers will make the MSVC build unhappy.
>
> Yes, this syntax isn't allowed in core Mesa. Only drivers can use it.


More information about the mesa-dev mailing list