From: Eli Zaretskii <eliz@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: emacs-devel@gnu.org
Subject: Re: FACE_FROM_ID vs FACE_OPT_FROM_ID
Date: Fri, 24 Jun 2016 12:57:56 +0300 [thread overview]
Message-ID: <831t3m3o4b.fsf@gnu.org> (raw)
In-Reply-To: <576CFCFE.8050908@cs.ucla.edu> (message from Paul Eggert on Fri, 24 Jun 2016 11:27:26 +0200)
> Cc: emacs-devel@gnu.org
> From: Paul Eggert <eggert@cs.ucla.edu>
> Date: Fri, 24 Jun 2016 11:27:26 +0200
>
> > eassert (face); if (!face) { ...}
>
> eassert (X) means that X must be nonzero, so there should never be a
> need for a runtime check !X after a call to eassert (X).
Maybe I'm missing something, but my reading of this:
#ifndef ENABLE_CHECKING
# define eassert(cond) ((void) (false && (cond))) /* Check COND compiles. */
# define eassume(cond) assume (cond)
#else /* ENABLE_CHECKING */
extern _Noreturn void die (const char *, const char *, int);
extern bool suppress_checking EXTERNALLY_VISIBLE;
# define eassert(cond) \
(suppress_checking || (cond) \
? (void) 0 \
: die (# cond, __FILE__, __LINE__))
is that when ENABLE_CHECKING is not defined and suppress_checking is
true, eassert does nothing.
next prev parent reply other threads:[~2016-06-24 9:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-23 20:03 FACE_FROM_ID vs FACE_OPT_FROM_ID Eli Zaretskii
2016-06-24 0:23 ` Paul Eggert
2016-06-24 8:49 ` Eli Zaretskii
2016-06-24 9:27 ` Paul Eggert
2016-06-24 9:57 ` Eli Zaretskii [this message]
2016-06-24 10:00 ` Eli Zaretskii
2016-06-24 11:17 ` Paul Eggert
2016-06-24 13:43 ` Eli Zaretskii
2016-06-24 21:34 ` Paul Eggert
2016-06-25 7:48 ` Eli Zaretskii
2016-06-25 21:34 ` Paul Eggert
2016-07-02 9:50 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=831t3m3o4b.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=eggert@cs.ucla.edu \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).