Predefined Identifier | Learn CPlusPlus
The Predefined Identifier function returns as a string that contains the name of the enclosing function or method. In other words, it returns the string that contains the name of the function that is called from. This basic feature from C99 requires some modification to integrate with C++, and with C++11 it is improved to support strings in addition to char arrays. If you want to explore more about Predefined Identifier, take a look at this blog.