X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fperformance-scheme.cc;h=a00e6b8efd13e52094c9f6f9ef5d006f4544dc9e;hb=92639219fbef60744ab4c0a3c605507c3a4e3037;hp=645262f9df1072b04cccffe80700fee2f882e9cd;hpb=2c22efe5a46a37065b10c3f51c5d7db00d07d318;p=lilypond.git diff --git a/lily/performance-scheme.cc b/lily/performance-scheme.cc index 645262f9df..a00e6b8efd 100644 --- a/lily/performance-scheme.cc +++ b/lily/performance-scheme.cc @@ -3,23 +3,19 @@ source file of the GNU LilyPond music typesetter - (c) 2005 Han-Wen Nienhuys + (c) 2005--2007 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)); - - SCM_ASSERT_TYPE (perf, performance, SCM_ARG1, __FUNCTION__, "Performance"); - SCM_ASSERT_TYPE (scm_is_string (filename), filename, SCM_ARG2, __FUNCTION__, "file name"); + LY_ASSERT_TYPE (unsmob_performance, performance, 1); + LY_ASSERT_TYPE (scm_is_string, filename, 2); - perf->write_output (ly_scm2string (filename)); + unsmob_performance (performance)->write_output (ly_scm2string (filename)); return SCM_UNSPECIFIED; } -