Added better support of G_STRFUNC for Visual Studio platform
authorFilippo Della Betta <filippo.dellabetta@telecomitalia.it>
Thu, 16 Feb 2012 09:04:50 +0000 (10:04 +0100)
committerRyan Lortie <desrt@desrt.ca>
Fri, 24 Feb 2012 21:21:45 +0000 (16:21 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=670128

glib/gmacros.h

index e07610c..be64e32 100644 (file)
 #  define G_STRFUNC     ((const char*) (__PRETTY_FUNCTION__))
 #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 19901L
 #  define G_STRFUNC     ((const char*) (__func__))
+#elif defined(_MSC_VER) && (_MSC_VER > 1300)
+#  define G_STRFUNC     ((const char*) (__FUNCTION__))
 #else
 #  define G_STRFUNC     ((const char*) ("???"))
 #endif