Sergey Guralnik serhio@etersoft.ru writes:
+static void test_setscrollinfo ( HWND hwnd, INT nBar ) +{
- SCROLLINFO cur, expected;
- char ok_format[] = "unexpected state: (bar: %d)\n"
" expected: min: %d, max: %d, page: %d, pos: %d\n"
" got: min: %d, max: %d, page: %d, pos: %d\n";
+#define SCROLL_OK_ARGS nBar, \
- expected.nMin, expected.nMax, expected.nPage, expected.nPos, \
- cur.nMin, cur.nMax, cur.nPage, cur.nPos
Please avoid that sort of macro abuse. Write an inline function if you don't want to duplicate the ok statement.