2 #(ly:set-option 'warning-as-error #f)
3 #(ly:expect-warning (ly:translate-cpp-warning-scheme "Markup depth exceeds maximal value of %d; Markup: %s") 1024 "recursive-explosion-markup")
6 texidoc = "Markups have a maximum depth to prevent non-termination."
10 % A simple markup function that calls itself and increases its argument, so
11 % it will grow forever, unless we terminate it.
12 #(define-markup-command (recursive-explosion layout props nr)
14 (interpret-markup layout props (make-recursive-explosion-markup (+ nr 1))))
16 \markup { Test: \recursive-explosion #1 }