Am Montag, 10. Oktober 2011, 01:12:45 schrieb Ian Hulin:
> Hi all,
> 
> Before the new loglevel option was introduced you had to do
> 
> (ly:get_option 'verbose) from scheme to check whether you wanted to
> output extra stuff.  Now that --verbose is deprecated in favour of
> --loglevel=DEBUG, what's the non-deprecated way of coding this when
> it's _not_ just to output a message (where you can use ly:debug)? For
> example
> 
> (if (ly:get_option 'verbose)
>   (set %load-hook (lambda (filename)
>                   (ly:message ( _ "\t[Loading ~a] ...\n") filename))))
> 
> I need a scheme equivalent to is_loglevel(DEBUG) in C++.

(ly:verbose-output?)

Notice, however, that the 'verbose option is also initialized to (ly:verbose-
output?), so the above should work just as well (except if the loglevel is 
somehow changed later on).

Cheers,
Reinhold
-- 
------------------------------------------------------------------
Reinhold Kainhofer, [email protected], http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
lilypond-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to