diff options
| author | Gerd Moellmann | 1999-09-14 13:09:30 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-09-14 13:09:30 +0000 |
| commit | c3df1ad99d4a150def7a0e789a1f6691eefb6979 (patch) | |
| tree | fc31845e83f28bdbb860f9c2a35f9d44b1b6b0a4 /src | |
| parent | 213bac8afd79d4a4766b59fc96b427986aa6e8a0 (diff) | |
| download | emacs-c3df1ad99d4a150def7a0e789a1f6691eefb6979.tar.gz emacs-c3df1ad99d4a150def7a0e789a1f6691eefb6979.zip | |
(CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
Diffstat (limited to 'src')
| -rw-r--r-- | src/frame.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/frame.h b/src/frame.h index 442a0e32ac5..498591106b4 100644 --- a/src/frame.h +++ b/src/frame.h | |||
| @@ -581,19 +581,18 @@ typedef struct frame *FRAME_PTR; | |||
| 581 | (f)->visible = (f)->async_visible, \ | 581 | (f)->visible = (f)->async_visible, \ |
| 582 | (f)->iconified = (f)->async_iconified) | 582 | (f)->iconified = (f)->async_iconified) |
| 583 | 583 | ||
| 584 | #define CHECK_FRAME(x, i) \ | 584 | #define CHECK_FRAME(x, i) \ |
| 585 | if (! FRAMEP (x)) \ | 585 | do { \ |
| 586 | x = wrong_type_argument (Qframep, (x)); \ | 586 | if (! FRAMEP (x)) \ |
| 587 | else \ | 587 | x = wrong_type_argument (Qframep, (x)); \ |
| 588 | (void) 0 | 588 | } while (0) |
| 589 | 589 | ||
| 590 | #define CHECK_LIVE_FRAME(x, i) \ | 590 | #define CHECK_LIVE_FRAME(x, i) \ |
| 591 | if (! FRAMEP (x) \ | 591 | do { \ |
| 592 | || ! FRAME_LIVE_P (XFRAME (x))) \ | 592 | if (! FRAMEP (x) \ |
| 593 | x = wrong_type_argument (Qframe_live_p, (x)); \ | 593 | || ! FRAME_LIVE_P (XFRAME (x))) \ |
| 594 | else \ | 594 | x = wrong_type_argument (Qframe_live_p, (x)); \ |
| 595 | (void) 0 | 595 | } while (0) |
| 596 | |||
| 597 | 596 | ||
| 598 | /* FOR_EACH_FRAME (LIST_VAR, FRAME_VAR) followed by a statement is a | 597 | /* FOR_EACH_FRAME (LIST_VAR, FRAME_VAR) followed by a statement is a |
| 599 | `for' loop which iterates over the elements of Vframe_list. The | 598 | `for' loop which iterates over the elements of Vframe_list. The |