__FUNCTION__获取函数名
__FUNCTION__
void test() { cout << __FUNCTION__ << endl; } int main() { test(); return 0; }