You copied the Doc URL to your clipboard.

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.

Was this page helpful? Yes No