mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +00:00
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:
parent
321bfca246
commit
fba77bb903
2 changed files with 11 additions and 9 deletions
|
@ -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>
|
||||
|
||||
* po/fr.po:
|
||||
|
|
|
@ -116,19 +116,16 @@ struct _GstDebugCategory {
|
|||
/* You might want to define GST_FUNCTION in apps' configure script */
|
||||
|
||||
#ifndef GST_FUNCTION
|
||||
#ifdef G_GNUC_PRETTY_FUNCTION
|
||||
#define GST_FUNCTION G_GNUC_PRETTY_FUNCTION
|
||||
#elif HAVE_FUNC
|
||||
#define GST_FUNCTION __func__
|
||||
#elif HAVE_PRETTY_FUNCTION
|
||||
#define GST_FUNCTION __PRETTY_FUNCTION__
|
||||
#elif HAVE_FUNCTION
|
||||
#define GST_FUNCTION __FUNCTION__
|
||||
#if defined (__GNUC__)
|
||||
# define GST_FUNCTION ((const char*) (__PRETTY_FUNCTION__))
|
||||
#elif defined (G_HAVE_ISO_VARARGS)
|
||||
# define GST_FUNCTION ((const char*) (__func__))
|
||||
#else
|
||||
#define GST_FUNCTION ""
|
||||
# define GST_FUNCTION ((const char*) ("???"))
|
||||
#endif
|
||||
#endif /* ifndef GST_FUNCTION */
|
||||
|
||||
|
||||
typedef struct _GstDebugMessage GstDebugMessage;
|
||||
typedef void (*GstLogFunction) (GstDebugCategory * category,
|
||||
GstDebugLevel level,
|
||||
|
|
Loading…
Reference in a new issue