From f0f343b222ab1f115ab20bb427d63c8d0a8872cc Mon Sep 17 00:00:00 2001 From: Joe Neeman Date: Fri, 20 Oct 2006 17:31:46 +0000 Subject: [PATCH] * lily/context.cc: * lily/prob.cc: use variables --- ChangeLog | 5 +++++ lily/context.cc | 6 ++++++ lily/prob.cc | 6 ++++++ 3 files changed, 17 insertions(+) diff --git a/ChangeLog b/ChangeLog index 626de9cc7c..31df76944e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-10-20 Joe Neeman + + * lily/context.cc: + * lily/prob.cc: use variables + 2006-10-20 Han-Wen Nienhuys * lily/arpeggio.cc (Module): idem. diff --git a/lily/context.cc b/lily/context.cc index 7065487745..d4177e77bf 100644 --- a/lily/context.cc +++ b/lily/context.cc @@ -475,6 +475,12 @@ Context::internal_set_property (SCM sym, SCM val #endif ) { +#ifndef NDEBUG + (void) file; + (void) line; + (void) fun; +#endif + if (do_internal_type_checking_global) assert (type_check_assignment (sym, val, ly_symbol2scm ("translation-type?"))); diff --git a/lily/prob.cc b/lily/prob.cc index 2c651358f3..e28c24411a 100644 --- a/lily/prob.cc +++ b/lily/prob.cc @@ -147,6 +147,12 @@ Prob::internal_set_property (SCM sym, SCM val #endif ) { +#ifndef NDEBUG + (void) file; + (void) line; + (void) fun; +#endif + if (do_internal_type_checking_global) type_check_assignment (sym, val); -- 2.39.2