bool do_internal_type_checking_global;
bool strict_infinity_checking = false;
-
static SCM option_hash;
void internal_set_option (SCM var, SCM val)
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));
+}