Alexandre Julliard wrote:
Explicit ok() calls are better than hiding them inside a macro.
Uh-oh. Want me to get rid of this macro
+#define CHECK_RET_ERRNO(ret, ex) \ + do { \ + ok(ret == ex, "ret is %d, expected %d\n", ret, ex); \ + ok(errno == ex, "errno is %d, expected %d\n", errno, ex); \ + } while (0)
Dan Kegel dank@kegel.com writes:
Alexandre Julliard wrote:
Explicit ok() calls are better than hiding them inside a macro.
Uh-oh. Want me to get rid of this macro
+#define CHECK_RET_ERRNO(ret, ex) \
- do { \
ok(ret == ex, "ret is %d, expected %d\n", ret, ex); \
ok(errno == ex, "errno is %d, expected %d\n", errno, ex); \
- } while (0)
Obviously, yes.