]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/grob-closure.cc
Issue 4086/6: Reimplement unpure-pure-containers in terms of Simple_smob and Smob1
[lilypond.git] / lily / grob-closure.cc
index 06a947d0de3a169a721ba45c2cc5d04ffe3dd672..03c68684c78eab0e47f35f4a4052ae711bb98b64 100644 (file)
@@ -39,7 +39,7 @@ add_offset_callback (Grob *g, SCM proc, Axis a)
       return;
     }
 
-  if (ly_is_procedure (data) || is_unpure_pure_container (data))
+  if (ly_is_procedure (data) || Unpure_pure_container::unsmob (data))
     data = Simple_closure::make_smob (scm_list_1 (data));
   else if (Simple_closure *sc = Simple_closure::unsmob (data))
     data = sc->expression ();
@@ -67,7 +67,7 @@ chain_callback (Grob *g, SCM proc, SCM sym)
 {
   SCM data = g->get_property_data (sym);
 
-  if (ly_is_procedure (data) || is_unpure_pure_container (data))
+  if (ly_is_procedure (data) || Unpure_pure_container::unsmob (data))
     data = Simple_closure::make_smob (scm_list_1 (data));
   else if (Simple_closure *sc = Simple_closure::unsmob (data))
     data = sc->expression ();