Sun Studio 12: C User's Guide

D.1.3 __func__ Support

6.4.2.2 Predefined identifiers

The compiler provides support for the predefined identifier __func__. __func__ is defined as an array of chars which contains the name of the current function in which __func__ appears.