mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 16:03:03 +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:
parent
784f7bd8a6
commit
daf72b15c6
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user