[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
lily/freetype-error.cc: const struct #include ;
From: |
Graham Percival |
Subject: |
lily/freetype-error.cc: const struct #include ; |
Date: |
Mon, 6 Sep 2010 18:44:58 +0100 |
I see a really weird C++ construct in this (short) file:
lily/freetype-error.cc
--------
const struct Freetype_error_message
{
FT_Error err_code;
const char* err_msg;
} ft_errors[] =
#include <freetype/fterrors.h>
;
--------
The #include and the ; appear to be part of the const struct -- moving
the #include further up in the file produces a compile error.
Does anybody know what this is doing, and more importantly, how it
could be written in more standard/typical C++ ?
Cheers,
- Graham
- lily/freetype-error.cc: const struct #include ;,
Graham Percival <=
- Re: lily/freetype-error.cc: const struct #include ;, Carl Sorensen, 2010/09/06
- Re: lily/freetype-error.cc: const struct #include ;, Werner LEMBERG, 2010/09/06
- Re: lily/freetype-error.cc: const struct #include ;, Wols Lists, 2010/09/06
- Re: lily/freetype-error.cc: const struct #include ;, Alexander Kobel, 2010/09/06
- Re: lily/freetype-error.cc: const struct #include ;, Alexander Kobel, 2010/09/06
- Re: lily/freetype-error.cc: const struct #include ;, Graham Percival, 2010/09/10