]> git.donarmstrong.com Git - lilypond.git/commitdiff
always compile in Grob::instrumented_set_property
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 25 Mar 2007 03:02:05 +0000 (00:02 -0300)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 25 Mar 2007 03:02:05 +0000 (00:02 -0300)
lily/grob-property.cc

index 4eee8955e609747d618063ee873d4e3212aadb4f..d7f29aed3db1e29b7d9ade31f27ed6178dad5f64 100644 (file)
@@ -70,6 +70,7 @@ LY_DEFINE (ly_set_property_cache_callback, "ly:set-property-cache-callback",
   cache_callback = cb;
   return SCM_UNSPECIFIED;
 }
+#endif
 
 void
 Grob::instrumented_set_property (SCM sym, SCM v,
@@ -77,6 +78,7 @@ Grob::instrumented_set_property (SCM sym, SCM v,
                                 int line,
                                 char const *fun)
 {
+#ifndef NDEBUG
   if (ly_is_procedure (modification_callback))
     scm_apply_0 (modification_callback,
                 scm_list_n (self_scm (),
@@ -84,9 +86,10 @@ Grob::instrumented_set_property (SCM sym, SCM v,
                             scm_from_int (line),
                             scm_from_locale_string (fun),
                             sym, v, SCM_UNDEFINED));
+#endif
+  
   internal_set_property (sym, v);
 }
-#endif
 
 SCM
 Grob::get_property_alist_chain (SCM def) const