9.153 Built-in function name variables

The following table lists built-in variables that the compiler supports for C and C++.

Table 9-23 built-in variables

Name Value
__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.
Related reference
9.152 Predefined macros
Non-ConfidentialPDF file icon PDF versionARM DUI0375F
Copyright © 2007, 2008, 2011, 2012, 2014 ARM. All rights reserved.