2 #(ly:set-option 'warning-as-error #f)
5 texidoc = "Cyclic markup definitions should cause a warning, but
6 not crash LilyPond with an endless loop"
9 % A simple markup function that calls itself in a loop.
10 #(define-markup-command (cycle layout props m)
12 (interpret-markup layout props (make-cycle-markup m)))
14 % Two simple markup functions that call each other in a loop.
15 #(define-markup-command (cycleI layout props m)
17 (interpret-markup layout props (make-cycleII-markup m)))
18 #(define-markup-command (cycleII layout props m)
20 (interpret-markup layout props (make-cycleI-markup m)))
23 \markup { \cycle "a" }
24 \markup { \cycleI "a" }