/* Write midi as formatted ascii stream? */
bool do_midi_debugging_global;
bool use_object_keys;
+bool debug_skylines;
/*
Backwards compatibility.
crash if internally the wrong type is used for a grob property.
*/
bool do_internal_type_checking_global;
+bool strict_infinity_checking = false;
static SCM option_hash;
profile_property_accesses = to_boolean (val);
val = scm_from_bool (to_boolean (val));
}
- else if (var == ly_symbol2scm ("midi-debug"))
+ else if (var == ly_symbol2scm ("debug-midi"))
{
do_midi_debugging_global = to_boolean (val);
val = scm_from_bool (to_boolean (val));
point_and_click_global = to_boolean (val);
val = scm_from_bool (to_boolean (val));
}
- else if (var == ly_symbol2scm ("parse-protect"))
+ else if (var == ly_symbol2scm ("protected-scheme-parsing"))
{
parse_protect_global = to_boolean (val);
val = scm_from_bool (to_boolean (val));
}
- else if (var == ly_symbol2scm ("internal-type-checking"))
+ else if (var == ly_symbol2scm ("check-internal-types"))
{
do_internal_type_checking_global = to_boolean (val);
val = scm_from_bool (to_boolean (val));
}
+ else if (var == ly_symbol2scm ("debug-gc-assert-parsed-dead"))
+ {
+ parsed_objects_should_be_dead = to_boolean (val);
+ val = scm_from_bool (parsed_objects_should_be_dead);
+ }
else if (var == ly_symbol2scm ("old-relative"))
{
lily_1_8_relative = to_boolean (val);
use_object_keys = to_boolean (val);
val = scm_from_bool (to_boolean (val));
}
+ else if (var == ly_symbol2scm ("strict-infinity-checking"))
+ {
+ strict_infinity_checking = to_boolean (val);
+ val = scm_from_bool (to_boolean (val));
+ }
+ else if (var == ly_symbol2scm ("debug-skylines"))
+ {
+ debug_skylines = to_boolean (val);
+ val = scm_from_bool (to_boolean (val));
+ }
}
ssize const HELP_INDENT = 30;
}
string help ("Options supported by ly:set-option\n\n");
- vector_sort (opts, string_compare);
+ vector_sort (opts, less<string> ());
for (vsize i = 0; i < opts.size (); i++)
help += opts[i];
return scm_from_bool (be_verbose_global);
}
+
+
+
LY_DEFINE (ly_get_option, "ly:get-option", 1, 0, 0, (SCM var),
"Get a global option setting.")
{
SCM_ARG1, __FUNCTION__, "symbol");
return scm_hashq_ref (option_hash, var, SCM_BOOL_F);
}
+
+
+bool
+get_program_option (const char *s)
+{
+ SCM sym = ly_symbol2scm (s);
+
+ return to_boolean (ly_get_option (sym));
+}