X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fapply-context-iterator.cc;h=c2251bed270ec73d24c324bfe3d7d720c9e7c4ed;hb=664070d837cc4855091455892cb942cdcedeef0c;hp=38036708c0dd867c0f966b0c4929032cd1f3093e;hpb=18cb1761c781a9ce2607305fa5c9bb7fb34225bd;p=lilypond.git diff --git a/lily/apply-context-iterator.cc b/lily/apply-context-iterator.cc index 38036708c0..c2251bed27 100644 --- a/lily/apply-context-iterator.cc +++ b/lily/apply-context-iterator.cc @@ -1,6 +1,16 @@ +/* + apply-context-iterator.cc -- implement Apply_context_iterator + + source file of the GNU LilyPond music typesetter + + (c) 2004 Han-Wen Nienhuys + +*/ + #include "simple-music-iterator.hh" #include "context.hh" #include "music.hh" +#include "input.hh" /** Iterate a property. @@ -19,7 +29,10 @@ Apply_context_iterator::process (Moment m) { SCM proc = get_music ()->get_property ("procedure"); - scm_call_1 (proc, get_outlet ()->self_scm ()); + if (ly_c_procedure_p (proc)) + scm_call_1 (proc, get_outlet ()->self_scm ()); + else + get_music ()->origin ()->warning (_("\\applycontext argument is not a procedure")); Simple_music_iterator::process (m); }