X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fperformance-scheme.cc;h=affc4f04cfdbd999de8423336b55bafd425c7dc6;hb=aae3ff48c2def641f2cda0d8f5950aeb63a2d84d;hp=1d760da6dea9b8c2c7fb292289dd6ac3326d461f;hpb=75eebcb49e52d296b1da3e1074e0825d2c780db4;p=lilypond.git diff --git a/lily/performance-scheme.cc b/lily/performance-scheme.cc index 1d760da6de..affc4f04cf 100644 --- a/lily/performance-scheme.cc +++ b/lily/performance-scheme.cc @@ -1,23 +1,32 @@ /* - performance-scheme.cc -- implement Performance bindings + This file is part of LilyPond, the GNU music typesetter. - source file of the GNU LilyPond music typesetter + Copyright (C) 2005--2012 Han-Wen Nienhuys - (c) 2005--2006 Han-Wen Nienhuys + LilyPond is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + LilyPond is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LilyPond. If not, see . */ #include "performance.hh" LY_DEFINE (ly_performance_write, "ly:performance-write", - 2, 0, 0, (SCM performance, SCM filename), - "Write @var{performance} to @var{filename}") + 2, 0, 0, (SCM performance, SCM 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; }