#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
The macros ERRMSG()
and BUG()
are available by simply including this header file. The macros ASSERT()
, COND()
, and ERRCOND()
provide assertion checking that is enabled by defining either DEBUG_SUPPORT
or DEBUG_WATCH
. Defining DEBUG_WATCH
permits the expansion of macros TEXT()
, STR()
, INT()
, PTR()
, FLT()
, and VEC()
that displays quantities. A non-externally linked global integer variable DEBUG_COUNTER
is also enabled by defining DEBUG_WATCH
. The DEBUG_COUNTER
variable is automatically incremented by each of the "watch" macros. It can be useful in the context of debugging loops.