Commit c3df1ad9 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.

parent 213bac8a
......@@ -581,19 +581,18 @@ typedef struct frame *FRAME_PTR;
(f)->visible = (f)->async_visible, \
(f)->iconified = (f)->async_iconified)
#define CHECK_FRAME(x, i) \
if (! FRAMEP (x)) \
x = wrong_type_argument (Qframep, (x)); \
else \
(void) 0
#define CHECK_FRAME(x, i) \
do { \
if (! FRAMEP (x)) \
x = wrong_type_argument (Qframep, (x)); \
} while (0)
#define CHECK_LIVE_FRAME(x, i) \
if (! FRAMEP (x) \
|| ! FRAME_LIVE_P (XFRAME (x))) \
x = wrong_type_argument (Qframe_live_p, (x)); \
else \
(void) 0
do { \
if (! FRAMEP (x) \
|| ! FRAME_LIVE_P (XFRAME (x))) \
x = wrong_type_argument (Qframe_live_p, (x)); \
} while (0)
/* FOR_EACH_FRAME (LIST_VAR, FRAME_VAR) followed by a statement is a
`for' loop which iterates over the elements of Vframe_list. The
......
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