Commit 8ef4622d authored by Paul Eggert's avatar Paul Eggert
Browse files

* lisp.h (eassert): Check that the argument compiles, even if

ENABLE_CHECKING is not defined.
parent b9b84fa9
2011-03-15 Paul Eggert <eggert@cs.ucla.edu>
 
* lisp.h (eassert): Check that the argument compiles, even if
ENABLE_CHECKING is not defined.
* data.c (Findirect_variable): Name an expression, to avoid
gcc -Wbad-function-cast warning.
(default_value, arithcompare, arith_driver, arith_error): Now static.
......@@ -86,7 +86,7 @@ extern void die (const char *, const char *, int) NO_RETURN;
/* Define an Emacs version of "assert", since some system ones are
flaky. */
#ifndef ENABLE_CHECKING
#define eassert(X) (void) 0
#define eassert(X) ((void) (0 && (X))) /* Check that X compiles. */
#else /* ENABLE_CHECKING */
#if defined (__GNUC__) && __GNUC__ >= 2 && defined (__STDC__)
#define eassert(cond) CHECK(cond,"assertion failed: " #cond)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment