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