You Are Here:

Community: Wiki

This page was last modified on 17 December 2008, at 14:31.

TSS000697 - Getting the name of the current function

From Forum Nokia Wiki


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__);

See also

TSS001127 - Simple-to-use macros for writing debug log files

Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia