+LY_DEFINE (ly_score_add_output_def_x, "ly:score-add-output-def!",
+ 2, 0, 0, (SCM score, SCM def),
+ "Add an output definition @var{def} to @var{score}.")
+{
+ LY_ASSERT_SMOB (Score, score, 1);
+ LY_ASSERT_SMOB (Output_def, def, 2);
+ Score *sc = Score::unsmob (score);
+ Output_def *output_def = Output_def::unsmob (def);
+ sc->add_output_def (output_def);
+ return SCM_UNSPECIFIED;
+}