WEB: Found more hardcoded names, yay! Fix linking to essay, images in essay.
[lilypond/patrick.git] / lily / freetype-error.cc
blob8e5d435bc676776e1dcd2e92a45612eff0e20c40
1 /*
2 freetype-error.cc -- implement freetype error messages
4 source file of the GNU LilyPond music typesetter
6 (c) 2007--2009 Han-Wen Nienhuys <hanwen@lilypond.org>
8 */
10 #include "freetype.hh"
12 #undef __FTERRORS_H__
13 #define FT_ERRORDEF(e, v, s) { e, s },
14 #define FT_ERROR_START_LIST {
15 #define FT_ERROR_END_LIST { 0, 0 } };
17 const struct Freetype_error_message
19 int err_code;
20 const char* err_msg;
21 } ft_errors[] =
23 #include <freetype/fterrors.h>
28 #include <string>
30 string
31 freetype_error_string (int code)
33 for (Freetype_error_message const *p = ft_errors;
34 p->err_msg; p ++)
36 if (p->err_code == code)
37 return p->err_msg;
40 return "<unknown error>";