Compiler Error C3187

'__func__' : is only available within the body of a function

The predefined macro is not available outside the body of a function.

To correct this error, move the macro inside the body of a function.