Is there a way to get the current function name in C ++? I want to track the order of some features. Is there something like __FILE__ or __LINE__ ?
__FILE__
__LINE__
Thanks!
Using
__FUNCTION__ //or __PRETTY_FUNCTION__
Or, if you want to be compatible with the C ++ 0x speed (sic) standard, use __func__ if your compiler supports it (GCC), which will be portable.
__func__