/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 2010--2012 Jan Nieuwenhuizen <janneke@gnu.org>
+ Copyright (C) 2010--2014 Jan Nieuwenhuizen <janneke@gnu.org>
Han-Wen Nienhuys <hanwen@xs4all.nl>
LilyPond is free software: you can redistribute it and/or modify
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;
+}