g++ __FUNCTION__ replace time

后端 未结 7 711
迷失自我
迷失自我 2020-12-20 17:16

Can anyone tell when g++ replaces the __FUNCTION__ \'macro\' with the string containing the function name? It seems it can replace it not until it has check the

7条回答
  •  南笙
    南笙 (楼主)
    2020-12-20 17:36

    printf("%s" __FILE__ __LINE__ "\n", __FUNCTION__);
    

    Yeah, I know that's not really the same.

提交回复
热议问题