GLib: G_GNUC_FUNCTION vs. gcc-3.x



Hi,

gmacros.h has:

#if defined (__GNUC__) && (__GNUC__ < 3)
#define G_GNUC_FUNCTION         __FUNCTION__
#define G_GNUC_PRETTY_FUNCTION  __PRETTY_FUNCTION__
#else   /* !__GNUC__ */
#define G_GNUC_FUNCTION         ""
#define G_GNUC_PRETTY_FUNCTION  ""
#endif  /* !__GNUC__ */


What's the reason for not defining G_GNUC_FUNCTION and
G_GNUC_PRETTY_FUNCTION for gcc-3.x?

__FUNCTION__ and __PRETTY_FUNCTION__ work fine with
gcc (GCC) 3.2.2 20030109 (Debian prerelease)

And gmessages.h uses __PRETTY_FUNCTION__ directly #ifdef __GNUC__.


Regards,
Johannes



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