2004-01-15 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * lily/system.cc (typeset_grob): warn if adding twice.
+
* lily/sequential-iterator.cc (run_always): implement run_always().
* input/mutopia/F.Schubert/standchen.ly: use newaddlyrics.
void
System::typeset_grob (Grob * elem)
{
+ if (elem->pscore_)
+ programming_error ("Adding element twice.");
+
elem->pscore_ = pscore_;
Pointer_group_interface::add_grob (this, ly_symbol2scm ("all-elements"),elem);
scm_gc_unprotect_object (elem->self_scm ());
}
}
-
void
System::output_molecule (SCM expr, Offset o)
{
-
while (1)
{
if (!gh_pair_p (expr))