Make G_STRFUNC consistent across platforms
authorDan Winship <danw@gnome.org>
Fri, 14 Jun 2013 14:19:31 +0000 (11:19 -0300)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 30 Jun 2013 03:23:36 +0000 (23:23 -0400)
commitb7b38384010be4385ba9a1872dc3eb7a0134cbe0
tree2c8f98b49bde4199fb8d975871ab26fc1394b121
parenta3182e3b9a229292be5370542915ae4cc8cc6e25
Make G_STRFUNC consistent across platforms

Recent versions of clang have changed __PRETTY_FUNCTION__ to always
include the function signature (rather than including the function
signature in C++ but not in C like gcc does). This causes G_STRFUNC to
give different results under clang and gcc, causing some tests with
g_test_expect_messages() to fail.

Fix this by only using __PRETTY_FUNCTION__ in C++, and using
__FUNCTION__ in C. (Under gcc this change has no effect.)

https://bugzilla.gnome.org/show_bug.cgi?id=702147
glib/gmacros.h