Lioncash 7926a0c814 Use __func__ instead of __FUNCTION__ where applicable
This replaces usages of the non-standard __FUNCTION__ macro with the standard
mandated __func__ identifier.

__FUNCTION__ is a preprocessor definition that is provided as an
extension by compilers. This was the only convenient option to rely on
pre-C++11. However, C++11 and greater mandate the predefined identifier
__func__, which lets us accomplish the same thing.

The difference between the two, however, is that __func__ isn't a
preprocessor macro, it's an actual identifier that exists at function
scope. The C++17 draft standard (N4659) at section [dcl.fct.def.general]
paragraph 8 states:

"
The function-local predefined variable __func__ is defined as if a
definition of the form

static const char __func__[] = "function-name ";

had been provided, where function-name is an implementation-defined
string. It is unspecified whether such
a variable has an address distinct from that of any other object in the
program.
"

Thankfully, we don't do any macro or string concatenation with __FUNCTION__
that can't be modified to use __func__.
2018-03-16 13:41:53 -04:00
..
2017-11-07 11:02:27 -05:00
2017-08-22 16:40:34 +02:00
2016-12-06 20:33:53 +01:00
2015-05-25 13:11:47 +02:00
2018-03-14 22:03:12 -04:00
2018-03-14 22:03:12 -04:00
2017-08-22 16:40:34 +02:00
2018-01-20 17:08:47 +01:00
2017-04-12 06:15:18 +01:00
2016-07-16 22:48:46 +02:00
2017-08-03 13:29:59 -07:00
2017-08-03 13:29:59 -07:00
2017-08-15 22:29:10 +02:00
2017-08-15 22:29:10 +02:00
2017-01-17 20:46:48 -05:00
2017-01-17 20:46:48 -05:00
2017-06-15 21:33:50 +02:00
2017-08-22 16:40:34 +02:00
2018-03-14 22:03:12 -04:00
2018-03-14 22:03:12 -04:00
2017-01-24 03:31:51 +01:00