(try2)[PATCH 1/2] d3d10: Add a function to initialize the null variables.

Alexandre Julliard julliard at winehq.org
Tue Jan 5 05:51:25 CST 2010


Henri Verbeet <hverbeet at gmail.com> writes:

> 2010/1/5 Alexandre Julliard <julliard at winehq.org>:
>> That's not much of an improvement, static initialization is nicer.
>>
> In general yes, but it makes adding fields to d3d10_effect_variable or
> changing their order a bit of a pain. C99 struct initialization would
> help a bit there, but I doubt it's an option.

A simple macro would work. Also if you keep NULL fields at the end you
don't have to specify them at all.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list