repo.or.cz
/
lilypond.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
lilypond-0.0.9
[lilypond.git]
/
debug.hh
blob
200585608b7868697c75b25cb31fb2d5a8f5cd66
1
#ifndef DEBUG_HH
2
#define DEBUG_HH
3
#include <assert.h>
4
#include <iostream.h>
5
#include
"dstream.hh"
6
7
8
9
#define WARN warnout <<
"warning: "
<<__FUNCTION__ <<
"(): "
10
extern
ostream
&
warnout
;
11
extern
ostream
*
mlog
;
12
extern
ostream
*
nulldev
;
13
extern
Dstream monitor
;
// monitor
14
15
#ifdef NPRINT
16
#define mtor *nulldev
17
#else
18
#define mtor monitor.identify_as(__PRETTY_FUNCTION__)
19
#endif
20
void
error
(
String s
);
21
void
warning
(
String s
);
22
23
#endif