[英]C language : source file after preprocessing
Am using visual cl.exe compiler to get an intermediate file after preprocessing. 我使用视觉cl.exe编译器在预处理后获取中间文件。 all the
#define
are removed. 所有的
#define
均被删除。 is there any possibility to keep them in the intermediate file? 是否有可能将它们保留在中间文件中?
No. One of the tasks of the preprocessing is to remove all #define and others preprocessing stuffs the #s and creates a plain c file. 否。预处理的任务之一是删除所有#define,而其他预处理则填充#s并创建一个普通的c文件。
What you can do: use the /E or /P to output the preprocess to the output or file: http://blog.kowalczyk.info/article/clexe-cmd-line-args.html 您可以做什么:使用/ E或/ P将预处理输出到输出或文件: http : //blog.kowalczyk.info/article/clexe-cmd-line-args.html
#define
is a preprocessor instruction so obviously it won't be present in a preprocessed source file. #define
是预处理程序指令,因此显然它不会出现在预处理的源文件中。 Every occurrence of a preprocessor constant will be replaced with its actual value by the preprocessor. 每次出现的预处理器常量都将由其实际值替换为预处理器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.