Mercurial > emacs
comparison src/xfaces.c @ 59903:f2619addaa72
(x_free_gc) [!GLYPH_DEBUG]: Fix xassert.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Thu, 03 Feb 2005 14:08:47 +0000 |
parents | df565ffe7247 |
children | d6551c039c8f |
comparison
equal
deleted
inserted
replaced
59902:4a0a167cb6c4 | 59903:f2619addaa72 |
---|---|
736 x_free_gc (f, gc) | 736 x_free_gc (f, gc) |
737 struct frame *f; | 737 struct frame *f; |
738 GC gc; | 738 GC gc; |
739 { | 739 { |
740 BLOCK_INPUT; | 740 BLOCK_INPUT; |
741 xassert (--ngcs >= 0); | 741 IF_DEBUG (xassert (--ngcs >= 0)); |
742 XFreeGC (FRAME_X_DISPLAY (f), gc); | 742 XFreeGC (FRAME_X_DISPLAY (f), gc); |
743 UNBLOCK_INPUT; | 743 UNBLOCK_INPUT; |
744 } | 744 } |
745 | 745 |
746 #endif /* HAVE_X_WINDOWS */ | 746 #endif /* HAVE_X_WINDOWS */ |
769 x_free_gc (f, gc) | 769 x_free_gc (f, gc) |
770 struct frame *f; | 770 struct frame *f; |
771 GC gc; | 771 GC gc; |
772 { | 772 { |
773 BLOCK_INPUT; | 773 BLOCK_INPUT; |
774 xassert (--ngcs >= 0); | 774 IF_DEBUG (xassert (--ngcs >= 0)); |
775 xfree (gc); | 775 xfree (gc); |
776 UNBLOCK_INPUT; | 776 UNBLOCK_INPUT; |
777 } | 777 } |
778 | 778 |
779 #endif /* WINDOWSNT */ | 779 #endif /* WINDOWSNT */ |