[v2 PATCH 1/3] dpnet/test: Add IDirectPlay8Client EnumHost tests

Alexandre Julliard julliard at winehq.org
Wed Nov 16 16:49:03 CST 2016


Alistair Leslie-Hughes <leslie_alistair at hotmail.com> writes:

> +static HRESULT   lastAsyncCode   = E_FAIL;
> +static DPNHANDLE lastAsyncHandle = 0xdeadbeef;
> +
> +#define CHECK_LAST_ASYNC_OP(hr, handle) \
> +        ok(lastAsyncCode == hr, "got 0x%08x\n", lastAsyncCode); \
> +        ok(lastAsyncHandle == handle, "got 0x%08x\n", handle); \
> +        lastAsyncCode = E_FAIL; lastAsyncHandle = 0xdeadbeef;

Please don't define such macros. In this case you should simply spell it
out explicitly, it's not a lot of code.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list