Use scalar instead of embedded_scm for context mod overrides.
[lilypond/mpolesky.git] / lily / program-option.cc
blob81f2d5ab6d1708e7b9e7a226ec64118ac0c60b5b
1 /*
2 program-option.cc -- program options, non-scheme.
4 source file of the GNU LilyPond music typesetter
6 (c) 2007--2009 Han-Wen Nienhuys <hanwen@lilypond.org>
8 */
10 #include "program-option.hh"
12 string
13 get_output_backend_name ()
15 return ly_symbol2string (ly_get_option (ly_symbol2scm ("backend")));
18 bool
19 get_program_option (const char *s)
21 SCM sym = ly_symbol2scm (s);
23 return to_boolean (ly_get_option (sym));