mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
Merge branch '1755-revert-gstrfunc' into 'master'
Revert "macros: Try to use the standard __func__ first in G_STRFUNC" Closes #1755 See merge request GNOME/glib!799
This commit is contained in:
commit
0095056008
@ -733,10 +733,10 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Provide a string identifying the current function, non-concatenatable */
|
/* Provide a string identifying the current function, non-concatenatable */
|
||||||
#if defined (__func__)
|
#if defined (__GNUC__) && defined (__cplusplus)
|
||||||
#define G_STRFUNC ((const char*) (__func__))
|
|
||||||
#elif defined (__GNUC__) && defined (__cplusplus)
|
|
||||||
#define G_STRFUNC ((const char*) (__PRETTY_FUNCTION__))
|
#define G_STRFUNC ((const char*) (__PRETTY_FUNCTION__))
|
||||||
|
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
|
||||||
|
#define G_STRFUNC ((const char*) (__func__))
|
||||||
#elif defined (__GNUC__) || (defined(_MSC_VER) && (_MSC_VER > 1300))
|
#elif defined (__GNUC__) || (defined(_MSC_VER) && (_MSC_VER > 1300))
|
||||||
#define G_STRFUNC ((const char*) (__FUNCTION__))
|
#define G_STRFUNC ((const char*) (__FUNCTION__))
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user