]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/context-mod-scheme.cc
Emit warnings for missing translations.
[lilypond.git] / lily / context-mod-scheme.cc
index ce6d149dbbd86e3cf66a6db8a0f7eca6c062ff42..5479581b1c14f67d174c67eac28c235a03bdcc3e 100644 (file)
@@ -55,3 +55,16 @@ LY_DEFINE (ly_make_context_mod, "ly:make-context-mod",
   else
     return Context_mod ().smobbed_copy ();
 }
+
+LY_DEFINE (ly_context_mod_apply_x, "ly:context-mod-apply!",
+           2, 0, 0, (SCM context, SCM mod),
+           "Apply the context modification @var{mod} to @var{context}.")
+{
+  LY_ASSERT_SMOB (Context, context, 1);
+  LY_ASSERT_SMOB (Context_mod, mod, 2);
+
+  apply_property_operations (unsmob_context (context),
+                             unsmob_context_mod (mod)->get_mods ());
+  scm_remember_upto_here_1 (context);
+  return SCM_UNSPECIFIED;
+}