X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fmusic-constructor.cc;h=e86672d7c7db6b6eccafc1a5b2979443485c56a6;hb=78fab0cd2b9f3f568e9b97b313e33f28d7077223;hp=86b415100073921240653749aaa78b3b16440398;hpb=6b9bfd374643d1eed1ea158777d796c57a2bcd3a;p=lilypond.git diff --git a/lily/music-constructor.cc b/lily/music-constructor.cc index 86b4151000..e86672d7c7 100644 --- a/lily/music-constructor.cc +++ b/lily/music-constructor.cc @@ -3,12 +3,16 @@ source file of the GNU LilyPond music typesetter - (c) 2001--2002 Han-Wen Nienhuys + (c) 2001--2004 Han-Wen Nienhuys */ #include // UGH. +#include + +#include "warn.hh" #include "music-constructor.hh" + typedef Music* (*Music_ctor) (); static std::map *ctors_map_; @@ -36,6 +40,8 @@ Music* make_music (String s) { Music_ctor c = get_music_ctor (s); + if (!c) + programming_error (String ("No constructor for music: ") + s); assert (c); return (*c) ();