我在我可以访问的各种Linux系统中发现了这个有趣的代码,它在/usr/include/stdio.h
中。
167 /* Standard streams. */
168 extern struct _IO_FILE *stdin; /* Standard input stream. */
169 extern struct _IO_FILE *stdout; /* Standard output stream. */
170 extern struct _IO_FILE *stderr; /* Standard error output stream. */
171 /* C89/C99 say they're macros. Make them happy. */
172 #define stdin stdin
173 #define stdout stdout
174 #define stderr stderr
问题:定义一个本质上什么也不做的宏有什么意义?
#ifdef
作为示例。 - Ed Heal