emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

suppress_checking


From: Juanma Barranquero
Subject: suppress_checking
Date: Mon, 22 Oct 2007 17:59:57 +0200

Is there any point to the variable suppress_checking, or is it leftover code?

It is defined (and initialized to 0 by default, but not otherwise
modified in any way) in alloc.c, and the only use is in lisp.h:

  /* Extra internal type checking?  */
  extern int suppress_checking;
  extern void die P_((const char *, const char *, int)) NO_RETURN;

  #ifdef ENABLE_CHECKING

  #define CHECK(check,msg) (((check) || suppress_checking               \
                           ? (void) 0                           \
                           : die ((msg), __FILE__, __LINE__)),  \
                          0)
  #else

  /* Produce same side effects and result, but don't complain.  */
  #define CHECK(check,msg) ((check),0)

  #endif

Now, I suppose it could perhaps be useful while debugging, but if
that's the intended use, it's undocumented and quite a bit obscure...

             Juanma




reply via email to

[Prev in Thread] Current Thread [Next in Thread]