[glib] Use G_STRFUNC instead of explicit gcc-only __PRETTY_FUNC__



commit 89fa967ba1c72081a1698d35e6c10c99190b612d
Author: Dagobert Michelsen <dam opencsw org>
Date:   Tue Mar 9 15:02:57 2010 +0100

    Use G_STRFUNC instead of explicit gcc-only __PRETTY_FUNC__

 glib/gvariant.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gvariant.c b/glib/gvariant.c
index adc9030..d484ee2 100644
--- a/glib/gvariant.c
+++ b/glib/gvariant.c
@@ -282,7 +282,7 @@
  */
 #define TYPE_CHECK(value, TYPE, val) \
   if G_UNLIKELY (!g_variant_is_of_type (value, TYPE)) {           \
-    g_return_if_fail_warning (G_LOG_DOMAIN, __PRETTY_FUNCTION__,  \
+    g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC,            \
                               "g_variant_is_of_type (" #value     \
                               ", " #TYPE ")");                    \
     return val;                                                   \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]