Re: Glib logging disable patch
- From: Alexander Larsson <alla lysator liu se>
- To: Federico Mena Quintero <federico helixcode com>
- Cc: gtk-devel-list gnome org
- Subject: Re: Glib logging disable patch
- Date: Sat, 23 Dec 2000 14:35:36 +0100 (MET)
On Fri, 22 Dec 2000, Federico Mena Quintero wrote:
> Alexander Larsson <alla lysator liu se> writes:
>
> > This patch is critical in compiling a slimmed down glib.
> > Is this ok to check in?
> >
> > +
> > +#if defined(G_DISABLE_LOGGING)
> > +
> > #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
> > +#define g_error(...) (void)0
> > +#define g_message(...) (void)0
> > +#define g_critical(...) (void)0
> > +#define g_warning(...) (void)0
> > +#elif __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 4)
> > +#define g_error(format...) (void)0
> > +#define g_message(format...) (void)0
> > +#define g_critical(format...) (void)0
> > +#define g_warning(format...) (void)0
> > +#else /* !__GNUC__ */
> > +static void
> > +g_error (const gchar *format, ...)
> > +{
> > +}
>
> Shouldn't g_error() at least abort()?
Yes, probably.
/ Alex
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]