From: Han-Wen Nienhuys Date: Wed, 21 Feb 2007 15:56:01 +0000 (+0100) Subject: also move print function into ifndef NDEBUG. X-Git-Tag: release/2.11.20-1~10 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8f92566e08013ad67147ca2c78b588fbb8e98198;p=lilypond.git also move print function into ifndef NDEBUG. --- 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 {