gst/gstinfo.h (GST_FUNCTION): Reverted GST_FUNCTION to the old version as we don't want the full signature in C++ cod...

Original commit message from CVS:
* gst/gstinfo.h (GST_FUNCTION):
Reverted GST_FUNCTION to the old version as we don't want the
full signature in C++ code. Also added support for MSVC.
This commit is contained in:
Ole André Vadla Ravnås 2008-05-08 14:23:16 +00:00
parent 416a8725f4
commit 867e9c9191
2 changed files with 16 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2008-05-08 Ole André Vadla Ravnås <ole.andre.ravnas at tandberg com>
* gst/gstinfo.h (GST_FUNCTION):
Reverted GST_FUNCTION to the old version as we don't want the
full signature in C++ code. Also added support for MSVC.
2008-05-08 Sebastian Dröge <slomo@circular-chaos.org> 2008-05-08 Sebastian Dröge <slomo@circular-chaos.org>
* gst/gstutils.h: * gst/gstutils.h:

View file

@ -213,9 +213,18 @@ struct _GstDebugCategory {
* be defined when configuring your project, as it is compiler dependant. If it * be defined when configuring your project, as it is compiler dependant. If it
* is not defined, some default value is used. It is used to provide debugging * is not defined, some default value is used. It is used to provide debugging
* output with the function name of the message. * output with the function name of the message.
*
* Note that this is different from G_STRFUNC as we do not want the full
* function signature in C++ code.
*/ */
#ifndef GST_FUNCTION #ifndef GST_FUNCTION
# define GST_FUNCTION G_STRFUNC #if defined (__GNUC__) || (defined (_MSC_VER) && _MSC_VER >= 1300)
# define GST_FUNCTION ((const char*) (__FUNCTION__))
#elif defined (G_HAVE_ISO_VARARGS)
# define GST_FUNCTION ((const char*) (__func__))
#else
# define GST_FUNCTION ((const char*) ("???"))
#endif
#endif /* ifndef GST_FUNCTION */ #endif /* ifndef GST_FUNCTION */