From 5744aba6d9fa5f3bef96b3e32a0735df5b10da0c Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 2 Nov 1996 01:00:52 +0000 Subject: [PATCH] lilypond-0.0.9 --- hdr/debug.hh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 hdr/debug.hh 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 +#include +#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 -- 2.39.5