]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/global-context.cc
Issue 3923: Use apply instead of eval for timestep finalizations
[lilypond.git] / lily / global-context.cc
index 5aa70669dd259711b9daf4dae30bc3405a09ab64..f0f138f324336c338543c737c924610b0573d0b4 100644 (file)
@@ -181,9 +181,7 @@ Global_context::apply_finalizations ()
   SCM lst = get_property ("finalizations");
   set_property ("finalizations", SCM_EOL);
   for (SCM s = lst; scm_is_pair (s); s = scm_cdr (s))
-
-    /* TODO: make safe.  */
-    scm_primitive_eval (scm_car (s));
+    scm_apply_0 (scm_caar (s), scm_cdar (s));
 }
 
 /* Add a function to execute before stepping to the next time step.  */