| ID | TSS000697 | Creation date | June 25, 2007, updated December 17, 2008 |
| Platform | S60 3rd Edition | Devices | All (S60) |
| Category | Symbian C++ | Subcategory | Base & System |
| Keywords (APIs, classes, methods, functions): RDebug, __func__ |
The name of the current function can be retrieved for logging purposes in debug builds with the __func__ predefined identifier:
void LogFunctionName(const char* name)
{
RDebug::Printf("current function: %s\n", name);
}
Now the function name can be printed as follows:
LogFunctionName(__func__);
TSS001127 - Simple-to-use macros for writing debug log files
No related wiki articles found