*** empty log message ***
[lilypond.git] / flower / warn.cc
bloba987c14d4ab7329dd2d7a0605cd08d1fa245f547
1 /*
2 warn.cc -- implement warnings
4 source file of the Flower Library
6 (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
9 #include <stdlib.h>
10 #include <stdio.h>
12 #include "warn.hh"
15 void
16 message (String s)
18 fputs (s.to_str0 (), stderr);
19 fflush (stderr);
22 void
23 warning (String s)
25 message (_f ("warning: %s\n", s.to_str0 ()));
28 void
29 non_fatal_error (String s)
31 message (_f ("error: %s\n", s.to_str0 ()));
34 void
35 error (String s)
37 non_fatal_error (s);
38 exit (1);
41 void
42 programming_error (String s)
44 message (_f ("programming error: %s (Continuing; cross thumbs)\n",
45 s.to_str0 ()));