2 paper-system-scheme.cc -- implement Paper_system bindings
4 source file of the GNU LilyPond music typesetter
6 (c) 2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
9 #include "paper-system.hh"
13 LY_DEFINE (ly_paper_system_property, "ly:paper-system-property",
14 2, 1, 0, (SCM system, SCM sym, SCM dfault),
15 "Return the value for @var{sym}. Properties may be set by "
16 "setting the @code{line-break-system-details} property of "
17 "NonMusicalPaperColumn. If the property is not found, "
18 "return @var{dfault}, "
19 "or @code{'()} if undefined.")
21 Paper_system *ps = unsmob_paper_system (system);
22 SCM_ASSERT_TYPE (ps, system, SCM_ARG1, __FUNCTION__, "paper-system");
23 if (dfault == SCM_UNDEFINED)
26 SCM retval = ps->internal_get_property (sym);
27 if (retval == SCM_EOL)