From 8b2c05295e13b8000833627a5d5e3dcaaa8e5a7b Mon Sep 17 00:00:00 2001 From: Ian Hulin Date: Sat, 8 May 2010 19:58:36 -0600 Subject: Have LilyPond issue a success/failure termination message --- flower/include/warn.hh | 1 + flower/warn.cc | 7 +++++++ 2 files changed, 8 insertions(+) (limited to 'flower') diff --git a/flower/include/warn.hh b/flower/include/warn.hh index 170fbca827..10c800c443 100644 --- a/flower/include/warn.hh +++ b/flower/include/warn.hh @@ -28,5 +28,6 @@ void non_fatal_error (string); void programming_error (string s); void progress_indication (string s); void warning (string s); +void successful (string s); #endif /* WARN_HH */ diff --git a/flower/warn.cc b/flower/warn.cc index 0bf8983c7a..37751f7bde 100644 --- a/flower/warn.cc +++ b/flower/warn.cc @@ -52,6 +52,13 @@ message (string s) progress_indication (s); } +/* Display a success message. Always starts on a new line. */ +void +successful (string s) +{ + message (_f ("success: %s", s.c_str ()) + "\n"); +} + /* Display a warning message. Always starts on a new line. */ void warning (string s) -- cgit v1.2.3