18 Jul
2007
18 Jul
'07
5:24 a.m.
Misha Koshelev <mk144210(a)bcm.edu> writes:
#define CHECK_EXPECT(func) \ do { \ - ok(expect_ ##func, "unexpected call " #func "\n"); \ - expect_ ## func = FALSE; \ + if (!expect_ ##func && wine_allow_ ##func) \ + { \ + todo_wine ok(expect_ ##func, "unexpected call " #func "\n"); \ + wine_allow_ ##func = FALSE; \ + } \ + else \ + { \ + ok(expect_ ##func, "unexpected call " #func "\n"); \ + expect_ ## func = FALSE; \ + } \ called_ ## func = TRUE; \ }while(0)
This is becoming really ugly. You should fix this to use normal C code instead of macros. -- Alexandre Julliard julliard(a)winehq.org