摘要:
从当前运行的函数中得到函数名,使用__FUNCTION__ 及相关宏。 举例如下 #include <iostream> #include <string> using namespace std; const char* hello() { return __FUNCTION__;//返回函数名 阅读全文
posted @ 2020-04-28 10:51 yacbo 阅读(720) 评论(0) 推荐(0)
posted @ 2020-04-28 10:51 yacbo 阅读(720) 评论(0) 推荐(0)
posted @ 2020-04-22 16:01 yacbo 阅读(151) 评论(0) 推荐(0)
posted @ 2020-04-09 14:16 yacbo 阅读(242) 评论(0) 推荐(0)
posted @ 2020-04-03 19:32 yacbo 阅读(2509) 评论(0) 推荐(0)
posted @ 2020-01-19 14:23 yacbo 阅读(236) 评论(0) 推荐(0)
posted @ 2020-01-10 22:42 yacbo 阅读(327) 评论(0) 推荐(0)
posted @ 2019-12-30 16:14 yacbo 阅读(393) 评论(0) 推荐(0)
posted @ 2019-12-30 11:22 yacbo 阅读(209) 评论(0) 推荐(0)
posted @ 2019-12-28 10:49 yacbo 阅读(357) 评论(0) 推荐(0)