10.156 Built-in function name variables

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

Table 10-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
10.155 Predefined macros
Non-ConfidentialPDF file icon PDF versionARM DUI0472J
Copyright © 2010-2013 ARM. All rights reserved.