__PRETTY_FUNCTION__

Predefined variable containing a character string of the "unmangled" name of the C++ function being compiled.

Syntax
Prototype
static const char __PRETTY_FUNCTION__[] = "
  function-name ";
  
Remarks

The compiler implicitly defines this variable at the beginning of each function if the function refers to __PRETTY_FUNCTION__ . This name, function-name , is the same identifier that appears in source code, not the "mangled" identifier that the compiler and linker use. The C++ compiler "mangles" a function name by appending extra characters to the function's identifier to denote the function's return type and the types of its parameters.

The ISO/IEC 14882:2003 C++ standard does not specify this symbol.

Related information
__ASSEMBLER__
__COMPILER__
__COUNTER__
__TARGETARCH__
__VERSION_NUM__
__VERSION__
__cplusplus
__CWBUILD__
__CWCC__
__DATE__
__embedded_cplusplus
__FILE__
__func__
__FUNCTION__
__ide_target()
__LINE__
__MWERKS__
__optlevel
__profile__
__STDC__
__TIME__