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 }
#else
#define G_DECLS_START
#define G_DECLS_END
#endif


-- 
Sebastian Wilhelmi                   |            här ovanför alla molnen
mailto:wilhelmi@ira.uka.de           |      är himmlen så förunerligt blå
http://goethe.ira.uka.de/~wilhelmi   |



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