]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/global-context.cc
Issue 4357/3: Run preparatory script replacing listener macros
[lilypond.git] / lily / global-context.cc
index 5e940a670d161959d191fbe133f4bbc211b6cbe3..9125a7e07ef2e53796e6246aa82c2fae454c4da9 100644 (file)
@@ -42,7 +42,7 @@ Global_context::Global_context (Output_def *o)
   /* We only need the most basic stuff to bootstrap the context tree */
   event_source ()->add_listener (GET_LISTENER (create_context_from_event),
                                  ly_symbol2scm ("CreateContext"));
-  event_source ()->add_listener (GET_LISTENER (prepare),
+  event_source ()->add_listener (GET_LISTENER (Global_context, prepare),
                                  ly_symbol2scm ("Prepare"));
   events_below ()->register_as_listener (event_source_);
 
@@ -88,7 +88,6 @@ Global_context::get_moments_left () const
   return extra_mom_pq_.size ();
 }
 
-IMPLEMENT_LISTENER (Global_context, prepare);
 void
 Global_context::prepare (SCM sev)
 {