From 8f92566e08013ad67147ca2c78b588fbb8e98198 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Wed, 21 Feb 2007 16:56:01 +0100 Subject: [PATCH] also move print function into ifndef NDEBUG. --- lily/grob-property.cc | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/lily/grob-property.cc b/lily/grob-property.cc index f72a523225..4eee8955e6 100644 --- a/lily/grob-property.cc +++ b/lily/grob-property.cc @@ -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 { -- 2.39.5