Commit baab789c authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Replace the 'if (!cond) ; else code' construct with the standard 'do {

code } while (0)' construct combined with a regular 'if'.
parent 335fce9c
......@@ -134,7 +134,7 @@ static const UINT_PTR granularity_mask = 0xffff; /* Allocation granularity (usu
(((UINT)(size) + ((UINT_PTR)(addr) & page_mask) + page_mask) & ~page_mask)
#define VIRTUAL_DEBUG_DUMP_VIEW(view) \
if (!TRACE_ON(virtual)); else VIRTUAL_DumpView(view)
do { if (TRACE_ON(virtual)) VIRTUAL_DumpView(view); } while (0)
static void *user_space_limit = USER_SPACE_LIMIT;
......
......@@ -198,7 +198,7 @@ const struct builtin_class_descr MENU_builtin_class =
*/
#define debug_print_menuitem(pre, mp, post) \
if(!TRACE_ON(menu)) ; else do_debug_print_menuitem(pre, mp, post)
do { if (TRACE_ON(menu)) do_debug_print_menuitem(pre, mp, post); } while (0)
#define MENUOUT(text) \
TRACE("%s%s", (count++ ? "," : ""), (text))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment