Built-in function name variables

Table 30 lists built-in variables supported by the compiler for C and C++.

Table 30. built-in 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.


Show/hideSee also

Copyright © 2010-2012 ARM. All rights reserved.ARM DUI 0491H
Non-ConfidentialID070912