| |||
| Home > ARM Compiler Reference > GNU extensions to the ARM compiler > Function names | |||
Two predefined macros are supported to hold the name of the current function:
__FUNCTION__Holds the name of the function as it appears in the source.
__PRETTY_FUNCTION__Holds the name of the function pretty printed in a language-specific fashion.
For example:
void Function_Names_0()
{
printf("Normal is %s. Pretty is %s\n", __FUNCTION__,__PRETTY_FUNCTION__);
}
Supported in GNU mode and ARM mode.
Also, see Predefined macros.