user32/tests: Wrap helper macro inside function.

this lets the compiler do the int => long conversions

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Eric Pouech 2022-03-10 08:46:41 +01:00 committed by Alexandre Julliard
parent bd3c533f29
commit c34f23813f
1 changed files with 5 additions and 2 deletions

View File

@ -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 { \