Misha Koshelev mk144210@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; \
}while(0)} \ called_ ## func = TRUE; \
This is becoming really ugly. You should fix this to use normal C code instead of macros.