Mercurial > emacs
comparison src/frame.h @ 25711:37ce1bad5657
(CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 14 Sep 1999 13:09:30 +0000 |
parents | 728844445e1c |
children | f5dded41adcc |
comparison
equal
deleted
inserted
replaced
25710:ee1da070c50f | 25711:37ce1bad5657 |
---|---|
579 (((f)->async_visible && (f)->visible != (f)->async_visible) ? \ | 579 (((f)->async_visible && (f)->visible != (f)->async_visible) ? \ |
580 SET_FRAME_GARBAGED (f) : 0, \ | 580 SET_FRAME_GARBAGED (f) : 0, \ |
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 |
600 loop will set FRAME_VAR, a Lisp_Object, to each frame in | 599 loop will set FRAME_VAR, a Lisp_Object, to each frame in |
601 Vframe_list in succession and execute the statement. LIST_VAR | 600 Vframe_list in succession and execute the statement. LIST_VAR |