3.4.15. 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.

Copyright © 2002-2005 ARM Limited. All rights reserved.ARM DUI 0205F
Non-Confidential