GLib: G_GNUC_FUNCTION vs. gcc-3.x
- From: Johannes Stezenbach <js convergence de>
- To: gtk-devel-list gnome org
- Subject: GLib: G_GNUC_FUNCTION vs. gcc-3.x
- Date: Wed, 15 Jan 2003 18:36:52 +0100
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]