File: header-cyclic-reference.ly

package info (click to toggle)
lilypond 2.24.4-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 70,352 kB
  • sloc: cpp: 87,962; lisp: 43,344; xml: 31,269; python: 22,974; sh: 4,090; yacc: 4,080; perl: 2,873; lex: 1,387; makefile: 76
file content (17 lines) | stat: -rw-r--r-- 610 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
\version "2.16.0"
#(ly:set-option 'warning-as-error #t)
#(ly:expect-warning (G_ "Recursive definition of property ~a detected!") 'header:title)
#(ly:expect-warning (G_ "Recursive definition of property ~a detected!") 'header:composer)

\header {
  texidoc = "Cyclic references in header fields should cause a warning, but
not crash LilyPond with an endless loop"

  title = \markup {Cyclic reference to \fromproperty #'header:title }

  composer = \markup {Cyclic reference to \fromproperty #'header:temp }
  temp = \markup {Cyclic reference to \fromproperty #'header:composer }
}
\score {
  { c' d' e' f' }
}