Where The Streets Have No Name

__LINE__, __FUNCTION__, and __FILE__ macros 본문

Developement/C, C++, C#

__LINE__, __FUNCTION__, and __FILE__ macros

highheat 2008. 5. 16. 22:55

출처 : http://kldp.org/node/20849

printf("Welcome to line %d, in the function %s, in the file %s.\n", __LINE__, __FUNCTION__, __FILE__);

Implementing the __FUNCTION__ macro in VC++ 6.0
http://www.codeproject.com/KB/tips/xtrace.aspx