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>
10 #include "freetype.hh"
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
23 #include <freetype/fterrors.h>
31 freetype_error_string (int code
)
33 for (Freetype_error_message
const *p
= ft_errors
;
36 if (p
->err_code
== code
)
40 return "<unknown error>";