X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fperformance-scheme.cc;h=f69bb7bb6246ffd678c97c2fbe4b30582f3f122e;hb=8cab78caa0db1ba14f2e52e4c1ddbb541ea0e5cb;hp=6a2284587e93bc148ec8c831878e27c944e4a485;hpb=978fa09436484d8d670e8ee8b3eb8cfacd493675;p=lilypond.git diff --git a/lily/performance-scheme.cc b/lily/performance-scheme.cc index 6a2284587e..f69bb7bb62 100644 --- a/lily/performance-scheme.cc +++ b/lily/performance-scheme.cc @@ -3,21 +3,19 @@ source file of the GNU LilyPond music typesetter - (c) 2005 Han-Wen Nienhuys + (c) 2005--2009 Han-Wen Nienhuys */ #include "performance.hh" LY_DEFINE (ly_performance_write, "ly:performance-write", 2, 0, 0, (SCM performance, SCM filename), - "Write @var{performance} to @var{filename}") + "Write @var{performance} to @var{filename}.") { - Performance *perf = dynamic_cast (unsmob_music_output (performance)); + LY_ASSERT_TYPE (unsmob_performance, performance, 1); + LY_ASSERT_TYPE (scm_is_string, filename, 2); - SCM_ASSERT_TYPE (perf, performance, SCM_ARG1, __FUNCTION__, "Performance"); - SCM_ASSERT_TYPE (scm_is_string (filename), filename, SCM_ARG2, __FUNCTION__, "file name"); - - perf->write_output (ly_scm2string (filename)); + unsmob_performance (performance)->write_output (ly_scm2string (filename)); return SCM_UNSPECIFIED; }