[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

lily/ const struct #include ;

From: Graham Percival
Subject: lily/ const struct #include ;
Date: Mon, 6 Sep 2010 18:44:58 +0100

I see a really weird C++ construct in this (short) file:

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++ ?

- Graham

reply via email to

[Prev in Thread] Current Thread [Next in Thread]