__func__ predefined identifier in C99

The __func__ predefined identifier provides a means of obtaining the name of the current function. For example, the function:

void foo(void)
{
    printf("This function is called '%s'.\n", __func__);
}

prints:

This function is called 'foo'.

Show/hideSee also

Concepts
Reference
Copyright © 2010-2011 ARM. All rights reserved.ARM DUI 0472F
Non-ConfidentialID091611