[PLUG] OT: Function name macro in ANSI C ?
Tyler Creelan
creelan at engr.orst.edu
Fri Jul 11 13:31:01 UTC 2003
Fedor Pikus wrote:
> __FUNCTION__ is a GCC-ism.
[..]
> BTW, if __FUNCTION__ works, odds are __func__works too.
It looks like __func__ is an ANSI C99 addition, so it would be
preferable to __FUNCTION__, correct?
Btw, it appears MSVC does not support __func__, although VC7
supports __FUNCTION__.
References:
http://gcc.gnu.org/gcc-3.0/c99status.html
http://msdn.microsoft.com/chats/vstudio/vstudio_022703.asp
TFC
More information about the PLUG
mailing list