__FUNCTION__

Predefined variable of the name of the function being compiled.

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

The compiler implicitly defines this variable at the beginning of each function if the function refers to __FUNCTION__ . The character string contained by this array, function-name , is the name of the function being compiled.

This implicit variable is undefined outside of a function body.

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