]> git.donarmstrong.com Git - lilypond.git/commitdiff
also move print function into ifndef NDEBUG.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 21 Feb 2007 15:56:01 +0000 (16:56 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 21 Feb 2007 15:56:01 +0000 (16:56 +0100)
lily/grob-property.cc

index f72a523225b4497cc9e7ea1db6dfd37fa8739c8e..4eee8955e609747d618063ee873d4e3212aadb4f 100644 (file)
@@ -25,6 +25,16 @@ Protected_scm grob_property_callback_stack = SCM_EOL;
 
 #ifndef NDEBUG
 extern bool debug_property_callbacks;
+
+static void
+print_property_callback_stack ()
+{
+  int frame = 0;
+  for (SCM s = grob_property_callback_stack; scm_is_pair (s); s = scm_cdr (s))
+    message (_f ("%d: %s", frame++, ly_scm_write_string (scm_car (s)).c_str ()));
+}
+
+
 static SCM modification_callback = SCM_EOL;
 static SCM cache_callback = SCM_EOL;
 
@@ -143,14 +153,6 @@ Grob::internal_get_property_data (SCM sym) const
   return (handle == SCM_BOOL_F) ? SCM_EOL : scm_cdr (handle);
 }
 
-static void
-print_property_callback_stack ()
-{
-  int frame = 0;
-  for (SCM s = grob_property_callback_stack; scm_is_pair (s); s = scm_cdr (s))
-    message (_f ("%d: %s", frame++, ly_scm_write_string (scm_car (s)).c_str ()));
-}
-
 SCM
 Grob::internal_get_property (SCM sym) const
 {