In the C language, __FUNCTION__ can be used to get the current function\'s name. But if I define a function named a() and it is called
__FUNCTION__
If your platform is Windows, you may use this: walking the callstack