]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/performance-scheme.cc
Run `make grand-replace'.
[lilypond.git] / lily / performance-scheme.cc
index 2894b0435e345d9f7d0943fc299d4180f2117687..fafd1d9db69c23617f044410b4ce003fc83f5311 100644 (file)
@@ -3,22 +3,19 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 2005--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #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<Performance *> (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;
 }