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.2
[lilypond.git]
/
debug.cc
blob
69c5a04a5b3e9ed58c165d2877b5a1e5f159ae6e
1
#include
"debug.hh"
2
#include
"dstream.hh"
3
int
debug_flags
;
4
5
void
6
set_debug
(
String s
)
7
{
8
if
(
s
.
pos
(
't'
)) {
9
debug_flags
|=
DEBUGTOKEN
;
10
mtor
<<
" Turning on token debug
\n
"
;
11
}
12
if
(
s
.
pos
(
'p'
)){
13
debug_flags
|=
DEBUGPARSER
;
14
mtor
<<
"Turning on parser debugger
\n
"
;
15
}
16
}
17
18
Dstream
monitor
(
cout
,
".dstreamrc"
);