[PATCH] d3dx9/tests: Use a macro to initialize matrix rows in math tests

Henri Verbeet hverbeet at gmail.com
Fri Nov 10 02:57:13 CST 2017


On 10 November 2017 at 08:06, Alex Henrie <alexhenrie24 at gmail.com> wrote:
> diff --git a/dlls/d3dx9_36/tests/math.c b/dlls/d3dx9_36/tests/math.c
> index ec07348685..409e3cb650 100644
> --- a/dlls/d3dx9_36/tests/math.c
> +++ b/dlls/d3dx9_36/tests/math.c
> @@ -25,6 +25,8 @@
>
>  #define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
>
> +#define SET_ARRAY4(array, a, b, c, d) array[0] = a; array[1] = b; array[2] = c; array[3] = d
You don't need a macro for that.



More information about the wine-devel mailing list