C, Objective-C preprocessor output

前端 未结 4 1684
野的像风
野的像风 2021-01-11 12:22

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.

4条回答
  •  执笔经年
    2021-01-11 12:34

    From within Xcode:

    • Xcode 3: Select the file, then Build → Preprocess.
    • Xcode 4: Select the file, then Product → Generate Output → Generate Preprocessed File.

提交回复
热议问题