diff options
Diffstat (limited to 'hdr/debug.hh')
-rw-r--r-- | hdr/debug.hh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/hdr/debug.hh b/hdr/debug.hh new file mode 100644 index 0000000000..fb3a070593 --- /dev/null +++ b/hdr/debug.hh @@ -0,0 +1,28 @@ +#ifndef DEBUG_HH +#define DEBUG_HH +#include <assert.h> +#include <iostream.h> +#include "dstream.hh" + +void error(String s); // errors + +// warnings +void warning(String s); +#define WARN warnout << "warning: "<<__FUNCTION__ << "(): " +extern ostream &warnout ; + +// progress +extern ostream *mlog; + +// debugging +extern Dstream monitor; // monitor + +#ifdef NPRINT +#define mtor if (0) monitor // clever hack +#else +#define mtor monitor.identify_as(__PRETTY_FUNCTION__) +#endif + + + +#endif |