changeset 29337:637117135842

(eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 31 May 2000 19:16:53 +0000
parents 5ccfe8a1638f
children c30e82ef32bb
files src/lisp.h
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lisp.h	Wed May 31 19:16:25 2000 +0000
+++ b/src/lisp.h	Wed May 31 19:16:53 2000 +0000
@@ -69,11 +69,15 @@
 
 /* Define an Emacs version of "assert", since some system ones are
    flaky.  */
+#ifndef ENABLE_CHECKING
+#define eassert(X)	(void) 0
+#else /* ENABLE_CHECKING */
 #if defined (__GNUC__) && __GNUC__ >= 2 && defined (__STDC__)
 #define eassert(cond) CHECK(cond,"assertion failed: " #cond)
 #else
 #define eassert(cond) CHECK(cond,"assertion failed")
 #endif
+#endif /* ENABLE_CHECKING */
 
 /* Define the fundamental Lisp data structures.  */