lilypond-1.4.0
[lilypond.git] / lib / warn.cc
blob1df7cda734ace777af149bb0cf9f8b48be95f857
1 #include <stream.h>
2 #include "warn.hh"
5 void
6 error (String s)
8 cerr << _ ("error: ") << s << '\n';
10 exit (1);
13 void
14 non_fatal_error (String s)
16 cerr << _ ("error: ") << s << '\n';
19 void
20 warning (String m)
22 cerr << _ ("warning: ") <<m <<endl;
26 void
27 message (String m)
29 cerr << m<<endl;
32 void
33 programming_error (String s)
35 cerr << _("programming error: ") << s << _(" (Continuing; cross thumbs)") << '\n';