if (unsmob_grob (l->get_property ("cause")))
orig_string = unsmob_grob (l->get_property ("cause"))->name ();
- programming_error (_f ("No spacing entry from %s to `%s'",
- orig_string.c_str (),
- sym_string.c_str ()));
+ programming_error (to_string ("No spacing entry from %s to `%s'",
+ orig_string.c_str (),
+ sym_string.c_str ()));
}
Real distance = 1.0;
if (path.size () != 1)
{
- programming_error (_f ("Invalid CreateContext event: Cannot create %s context", type.c_str ()));
+ programming_error (to_string ("Invalid CreateContext event: Cannot create %s context", type.c_str ()));
return;
}
Context_def *cdef = path[0];
Real r (scm_to_double (s));
if (isinf (r) || isnan (r))
{
- programming_error (_ ("infinity or NaN encountered while converting Real number"));
- programming_error (_ ("setting to zero"));
+ programming_error ("infinity or NaN encountered while converting Real number, "
+ "setting to zero");
r = 0.0;
}
#ifndef NDEBUG
if (val == ly_symbol2scm ("calculation-in-progress"))
{
- programming_error (_f ("cyclic dependency: calculation-in-progress encountered for #'%s (%s)",
- ly_symbol2string (sym).c_str (),
- name ().c_str ()));
+ programming_error (to_string ("cyclic dependency: calculation-in-progress encountered for #'%s (%s)",
+ ly_symbol2string (sym).c_str (),
+ name ().c_str ()));
if (debug_property_callbacks)
{
message ("backtrace: ");
{
if (isinf (y) || isnan (y))
{
- programming_error (_ ("Infinity or NaN encountered"));
+ programming_error ("Infinity or NaN encountered");
return;
}
note_shape == MLP_FLEXA_BEGIN);
break;
default:
- programming_error (_ ("Mensural_ligature:"
- " unexpected case fall-through"));
+ programming_error ("Mensural_ligature:"
+ " unexpected case fall-through");
return Lookup::blank (Box (Interval (0, 0), Interval (0, 0)));
}
out.add_stencil (join);
}
else
- programming_error (_ ("Mensural_ligature: (join_right == 0)"));
+ programming_error ("Mensural_ligature: (join_right == 0)");
}
#if 0 /* what happend with the ledger lines? */
FIXME: then don't do it.
*/
if (!m->is_mus_type ("event"))
- m->origin ()->programming_error (_ ("Sending non-event to context"));
+ m->origin ()->programming_error ("Sending non-event to context");
m->send_to_context (get_outlet ());
}
}
if (!spring)
- programming_error (_f ("No spring between column %d and next one",
- Paper_column::get_rank (this_col)));
+ programming_error (to_string ("No spring between column %d and next one",
+ Paper_column::get_rank (this_col)));
return spring ? *spring : Spring ();
}
#include "modified-font-metric.hh"
#include "output-def.hh"
#include "pango-font.hh"
+#include "international.hh"
#include "warn.hh"
static void
scm_display (markup, scm_current_error_port ());
scm_puts ("\n", scm_current_error_port ());
- Box b;
- b[X_AXIS].set_empty ();
- b[Y_AXIS].set_empty ();
-
- Stencil s (b, SCM_EOL);
- return s.smobbed_copy ();
+ return Stencil ().smobbed_copy ();
}
}
Real staff_space = Staff_symbol_referencer::staff_space (me);
if (!delta_pitch)
{
- me->programming_error (_ ("Vaticana_ligature: "
- "zero join (delta_pitch == 0)"));
+ me->programming_error ("Vaticana_ligature: "
+ "zero join (delta_pitch == 0)");
return Lookup::blank (Box (Interval (0, 0), Interval (0, 0)));
}
Interval x_extent = Interval (0, join_thickness);