# HG changeset patch # User Gerd Moellmann # Date 937314570 0 # Node ID 37ce1bad56577a4a432f9d8f871ba3466b7fef9f # Parent ee1da070c50f440421dfffa9a7bd985ff62f0725 (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while. diff -r ee1da070c50f -r 37ce1bad5657 src/frame.h --- a/src/frame.h Tue Sep 14 13:09:27 1999 +0000 +++ b/src/frame.h Tue Sep 14 13:09:30 1999 +0000 @@ -581,19 +581,18 @@ (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