8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 18:43:02 +01:00

__func__ is now not only C99 but also a C++11 feature, should be supported by every modern compiler

This commit is contained in:
Dmitry Yemanov 2023-09-12 11:09:59 +03:00
parent 784f7bd8a6
commit daf72b15c6

View File

@ -31,15 +31,7 @@
#include <string.h>
// __func__ is according to C99, but let's better define it for better flexibility
// For example, MSVC 2005 does not support __func__
#if defined _MSC_VER && (_MSC_VER <= 1800)
#define FB_FUNCTION __FUNCTION__
#elif defined(__GNUC__)
#define FB_FUNCTION (__FILE__ ": " STRINGIZE(__LINE__) )
#else
#define FB_FUNCTION __func__
#endif
namespace Firebird
{