2 apply-context-iterator.cc -- implement Apply_context_iterator
4 source file of the GNU LilyPond music typesetter
6 (c) 2004--2005 Han-Wen Nienhuys <hanwen@xs4all.nl>
9 #include "simple-music-iterator.hh"
17 class Apply_context_iterator : public Simple_music_iterator
20 DECLARE_SCHEME_CALLBACK (constructor, ());
22 virtual void process (Moment);
26 Apply_context_iterator::process (Moment m)
28 SCM proc = get_music ()->get_property ("procedure");
30 if (ly_is_procedure (proc))
31 scm_call_1 (proc, get_outlet ()->self_scm ());
33 get_music ()->origin ()->warning (_ ("\\applycontext argument is not a procedure"));
35 Simple_music_iterator::process (m);
38 IMPLEMENT_CTOR_CALLBACK (Apply_context_iterator);