4.8.2. Function names

Table 4.19 lists builtin variables supported by the ARM compiler for C and C++.

Table 4.19. Builtin variables

NameValue
__FUNCTION__

Holds the name of the function as it appears in the source.

__FUNCTION__ is a constant string literal. You cannot use the preprocessor to join the contents to other text to form new tokens.

__PRETTY_FUNCTION__

Holds the name of the function as it appears pretty printed in a language-specific fashion.

__PRETTY_FUNCTION__ is a constant string literal. You cannot use the preprocessor to join the contents to other text to form new tokens.


Copyright © 2007, 2010 ARM Limited. All rights reserved.ARM DUI 0348A
Non-Confidential