Browse Source

MariaRocks port: __PRETTY_FUNCTION__ is a gcc extension. Use __func__ when it is not available

For example, on Windows.
pull/355/head
Sergei Petrunia 9 years ago
parent
commit
f9e63b7c59
  1. 6
      storage/rocksdb/rdb_utils.h

6
storage/rocksdb/rdb_utils.h

@ -113,7 +113,11 @@ namespace myrocks {
contains the signature of the function as well as its bare name and provides
therefore more context when interpreting the logs.
*/
#define DBUG_ENTER_FUNC() DBUG_ENTER(__PRETTY_FUNCTION__)
#ifdef __GNUC__
# define DBUG_ENTER_FUNC() DBUG_ENTER(__PRETTY_FUNCTION__)
#else
# define DBUG_ENTER_FUNC() DBUG_ENTER(__func__)
#endif
/*
Error handling pattern used across MySQL abides by the following rules: "All

Loading…
Cancel
Save