mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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:
parent
416a8725f4
commit
867e9c9191
2 changed files with 16 additions and 1 deletions
|
@ -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>
|
||||
|
||||
* gst/gstutils.h:
|
||||
|
|
|
@ -213,9 +213,18 @@ struct _GstDebugCategory {
|
|||
* 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
|
||||
* 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
|
||||
# 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 */
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue