From: fred Date: Sat, 2 Nov 1996 01:00:52 +0000 (+0000) Subject: lilypond-0.0.9 X-Git-Tag: release/1.5.59~6957 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5744aba6d9fa5f3bef96b3e32a0735df5b10da0c;p=lilypond.git lilypond-0.0.9 --- 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