Re: extern "C" { .. } macros in glib.h

Hi, Joel 

> > woudn't something like gnome-libs/libgnome/gnome-defs.h make sense in
> > glib.h. It would make life a bit easier for library writers.
> Sebastian,
>         I thought that glib was supposed to be independant of everything
> that is built on top of it.  If that is the case, there should be no
> gnome references in the glib headers, right?

Of course, not, this was just to get the idea: In glib it would of course
look like this, in analogy to G_STMT_START and G_STMT_END

#ifdef __cplusplus 
#define G_DECLS_START extern "C" {
#define G_DECLS_END }
#define G_DECLS_END

Sebastian Wilhelmi                   |            här ovanför alla molnen           |      är himmlen så förunerligt blå   |

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