}
LY_DEFINE (ly_warn, "ly:warn",
- 1, 0, 0, (SCM str),
- "Scheme callable function to issue the warning @code{msg}.")
+ 1, 0, 1, (SCM str, SCM rest),
+ "Scheme callable function to issue the warning @code{msg}. "
+ "The message is formatted with @code{format} and @code{rest}.")
{
SCM_ASSERT_TYPE (ly_c_string_p (str), str, SCM_ARG1, __FUNCTION__, "string");
progress_indication ("\n");
+
+ str = scm_simple_format (SCM_BOOL_F, str, rest);
warning ("lily-guile: " + ly_scm2string (str));
- return SCM_BOOL_T;
+ return SCM_UNSPECIFIED;
}
LY_DEFINE (ly_dir_p, "ly:dir?",
Direction
to_dir (SCM s)
{
- return SCM_INUMP (s) ? (Direction) ly_scm2int (s) : CENTER;
+ return scm_is_integer (s) ? (Direction) ly_scm2int (s) : CENTER;
}
Interval
#endif
-#ifdef HAVE_PANGO_FC_FONT_MAP_ADD_DECODER_FIND_FUNC
+#if HAVE_PANGO_FC_FONT_MAP_ADD_DECODER_FIND_FUNC
#include "pangofc-afm-decoder.hh"