15 Aug
2025
15 Aug
'25
11:39 a.m.
Jacek Caban (@jacek) commented about dlls/mshtml/tests/htmldoc.c:
#define SET_EXPECT(func) \ expect_ ## func = TRUE
+#define SET_EXPECT_N(func, n) \ + do { called_ ## func = FALSE; expect_ ## func = n; } while(0) + #define SET_CALLED(func) \ called_ ## func = TRUE
#define CHECK_EXPECT2(func) \ do { \ ok(expect_ ##func, "unexpected call " #func "\n"); \ - called_ ## func = TRUE; \ + called_ ## func += 1; \ `DEFIEN_EXPECT` defines these as `BOOL`. While that's an integer in practice, let's avoid mixing types and change them to int, updating other macros to use 0/1 instead of `TRUE`/`FALSE`.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/8761#note_112917