[PATCH 09/20] dlls/user32/tests: wrap helper macro inside function
Eric Pouech
eric.pouech at gmail.com
Tue Mar 8 02:30:45 CST 2022
this lets the compiler do the int => long conversions
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
---
dlls/user32/tests/edit.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/tests/edit.c b/dlls/user32/tests/edit.c
index 6edec12e03b..777c50be337 100644
--- a/dlls/user32/tests/edit.c
+++ b/dlls/user32/tests/edit.c
@@ -2018,8 +2018,11 @@ static void test_margins_font_change(void)
}
-#define edit_pos_ok(exp, got, txt) \
- ok(exp == got, "wrong " #txt " expected %d got %d\n", exp, got);
+#define edit_pos_ok(exp, got, txt) edit_pos_ok_(__LINE__, exp, got, #txt)
+static inline void edit_pos_ok_(unsigned line, DWORD exp, DWORD got, const char* txt)
+{
+ ok_(__FILE__, line)(exp == got, "wrong %s expected %ld got %ld\n", txt, exp, got);
+}
#define check_pos(hwEdit, set_height, test_top, test_height, test_left) \
do { \
More information about the wine-devel
mailing list