由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - __FUNCTION__ 是怎么回事呀?
相关主题
inline functions in C++return value of a python function...
??? i m confused问个C++ virtual function的问题 (转载)
这是怎么回事?Is this function's behavior undefined?
pointer to functionC++ function template问题
[合集] C/C++ calling function by name这个function pointer最后的那个int是什么意思?
How to use a function return by reference in C++一年多前我发了几个贴子关于FP的想法
how much memory does it take to save the member function in a class ?C++ most vexing parse到底怎么回事?
function in c++做大项目的话,有两个语言features是杀手
相关话题的讨论汇总
话题: function话题: __话题: 怎么回事话题: name话题: btw
进入Programming版参与讨论
1 (共1页)
v*****n
发帖数: 13
1
在有些程序里看到一些tracing function里有__FUNCTION__, 然后运行到那一行,
就能print出那个function的name. 这个__FUNCTION__是什么呀? 好象也不是个
macro. 高手请指教... 谢了先.
z***y
发帖数: 42
2
It is an C extension in GCC. Just consider it as a magic thing for the
current func name.
BTW. 你会不会google啊.

【在 v*****n 的大作中提到】
: 在有些程序里看到一些tracing function里有__FUNCTION__, 然后运行到那一行,
: 就能print出那个function的name. 这个__FUNCTION__是什么呀? 好象也不是个
: macro. 高手请指教... 谢了先.

1 (共1页)
进入Programming版参与讨论
相关主题
做大项目的话,有两个语言features是杀手[合集] C/C++ calling function by name
tracing和logging有什么区别?How to use a function return by reference in C++
windows下的Gcc界面叫什么来?how much memory does it take to save the member function in a class ?
GCC Benchmarks, AMD64 and i686 (zz)function in c++
inline functions in C++return value of a python function...
??? i m confused问个C++ virtual function的问题 (转载)
这是怎么回事?Is this function's behavior undefined?
pointer to functionC++ function template问题
相关话题的讨论汇总
话题: function话题: __话题: 怎么回事话题: name话题: btw