16 Nov
2016
16 Nov
'16
4:49 p.m.
Alistair Leslie-Hughes <leslie_alistair(a)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(a)winehq.org