source file of the GNU LilyPond music typesetter
- (c) 2001--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 2001--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include <map> // UGH.
+#include <assert.h>
+
+#include "warn.hh"
#include "music-constructor.hh"
+
typedef Music* (*Music_ctor) ();
static std::map<String,Music_ctor> *ctors_map_;
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) ();