C,Objective-C预处理器输出 [英] C, Objective-C preprocessor output
本文介绍了C,Objective-C预处理器输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以获取预处理的 C /Objective-C代码?我有一些文件,我想看看一些#defines生成的代码.
Is there a way to get pre-processed C/Objective-C code? I have some files I acquired and would like to see the code produced by some #defines.
推荐答案
在命令行上,gcc -E foo.m
将向您显示经过预处理的输出(就像对普通C/C ++文件所做的一样).当然,这还将扩展您在代码中可能包含的所有#include
或#import
语句.
On the command line, gcc -E foo.m
will show you the preprocessed output (just as it does for normal C/C++ files). Of course, this will also expand any #include
or #import
statements you may have in your code.
这篇关于C,Objective-C预处理器输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文