gst/gstinfo.h: Copy G_STRFUNC implementation from glib-2.4 and use it for GST_FUNCTION. (bug #134750)

Original commit message from CVS:
* gst/gstinfo.h:  Copy G_STRFUNC implementation from glib-2.4
and use it for GST_FUNCTION.  (bug #134750)
This commit is contained in:
David Schleef 2004-02-19 20:08:45 +00:00
parent 321bfca246
commit fba77bb903
2 changed files with 11 additions and 9 deletions

View file

@ -1,3 +1,8 @@
2004-02-19 David Schleef <ds@schleef.org>
* gst/gstinfo.h: Copy G_STRFUNC implementation from glib-2.4
and use it for GST_FUNCTION. (bug #134750)
2004-02-19 Thomas Vander Stichele <thomas at apestaart dot org> 2004-02-19 Thomas Vander Stichele <thomas at apestaart dot org>
* po/fr.po: * po/fr.po:

View file

@ -116,19 +116,16 @@ struct _GstDebugCategory {
/* You might want to define GST_FUNCTION in apps' configure script */ /* You might want to define GST_FUNCTION in apps' configure script */
#ifndef GST_FUNCTION #ifndef GST_FUNCTION
#ifdef G_GNUC_PRETTY_FUNCTION #if defined (__GNUC__)
#define GST_FUNCTION G_GNUC_PRETTY_FUNCTION # define GST_FUNCTION ((const char*) (__PRETTY_FUNCTION__))
#elif HAVE_FUNC #elif defined (G_HAVE_ISO_VARARGS)
#define GST_FUNCTION __func__ # define GST_FUNCTION ((const char*) (__func__))
#elif HAVE_PRETTY_FUNCTION
#define GST_FUNCTION __PRETTY_FUNCTION__
#elif HAVE_FUNCTION
#define GST_FUNCTION __FUNCTION__
#else #else
#define GST_FUNCTION "" # define GST_FUNCTION ((const char*) ("???"))
#endif #endif
#endif /* ifndef GST_FUNCTION */ #endif /* ifndef GST_FUNCTION */
typedef struct _GstDebugMessage GstDebugMessage; typedef struct _GstDebugMessage GstDebugMessage;
typedef void (*GstLogFunction) (GstDebugCategory * category, typedef void (*GstLogFunction) (GstDebugCategory * category,
GstDebugLevel level, GstDebugLevel level,