关于 __BASE_FILE__
方紫涵 2011-02-12 05:30:41
看到有的资料说这个宏是程序的main()所在的那个文件
我试了下 感觉这个说法不对
下面是官网的说法,不是很明白
http://gcc.gnu.org/ml/gcc/2004-10/msg00534.html
This macro expands to the name of the main input file, in the form of a C
string constant. This is the source file that was specified on the command
line of the preprocessor or C compiler.
这里文一下:
1。__BASE_FILE__ 作用?
2 。 __FILE__与 __BASE_FILE__区别?: