Use scalar instead of embedded_scm for context mod overrides.
[lilypond/mpolesky.git] / lily / performance-scheme.cc
blobf69bb7bb6246ffd678c97c2fbe4b30582f3f122e
1 /*
2 performance-scheme.cc -- implement Performance bindings
4 source file of the GNU LilyPond music typesetter
6 (c) 2005--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
9 #include "performance.hh"
11 LY_DEFINE (ly_performance_write, "ly:performance-write",
12 2, 0, 0, (SCM performance, SCM filename),
13 "Write @var{performance} to @var{filename}.")
15 LY_ASSERT_TYPE (unsmob_performance, performance, 1);
16 LY_ASSERT_TYPE (scm_is_string, filename, 2);
18 unsmob_performance (performance)->write_output (ly_scm2string (filename));
19 return SCM_UNSPECIFIED;