Add HAVE___func__ and HAVE___FUNCTION__ (GH PR #27)

This commit is contained in:
Emil Rosenquist 2022-09-01 10:12:44 +02:00 committed by Boris Kolpackov
parent c504aa31a4
commit a31b66b8b7
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,10 @@
// HAVE___FUNCTION__
#undef HAVE___FUNCTION__
/* HAVE___FUNCTION__
* __FUNCTION__ is another name for __func__, provided for backward
* compatibility with old versions of GCC.
* Although it is seemingly available everywhere else.
*/
#define HAVE___FUNCTION__ 1

View File

@ -0,0 +1,10 @@
// HAVE___func__
#undef HAVE___func__
/* HAVE___func__
* __func__ was added to the standard in C99 and C++11. But seemingly exists
* almost everywhere before that as well.
*/
#define HAVE___func__ 1