When the C99 extensions setting is on, the compiler offers the __func__ predefined variable. Predefined symbol __func__ shows an example.
void abc(void) { puts(__func__); /* Output: "abc" */ }