From 72057d9496ef7939ad3653209711806a3702df79 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sun, 18 Aug 2002 22:25:39 +0000 Subject: [PATCH] (internal_set_mus_property): [!NDEBUG] Remove, use abort instead of assert. --- ChangeLog | 5 +++++ lily/music.cc | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b81c640154..49411c8590 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-08-19 Jan Nieuwenhuizen + + * lily/music.cc (internal_set_mus_property): [!NDEBUG] Remove, use + abort instead of assert. + 2002-08-18 Jan Nieuwenhuizen * input/test/ambitus.ly: Comment out ambitus until anal-proof. diff --git a/lily/music.cc b/lily/music.cc index 313f2c56f3..6f9ce4c928 100644 --- a/lily/music.cc +++ b/lily/music.cc @@ -184,10 +184,9 @@ Music::internal_get_mus_property (SCM sym) const void Music::internal_set_mus_property (SCM s, SCM v) { -#ifndef NDEBUG if (internal_type_checking_global_b) - assert (type_check_assignment (s, v, ly_symbol2scm ("music-type?"))); -#endif + if (!type_check_assignment (s, v, ly_symbol2scm ("music-type?"))) + abort (); mutable_property_alist_ = scm_assq_set_x (mutable_property_alist_, s, v); } -- 2.39.2