作者teslare (每次下中华队都输...orz)
看板Programming
标题Re: Preprocessor
时间Tue Nov 18 13:26:04 2008
※ 引述《sorryChen (陈扬和)》之铭言:
: C/C++语言中的Preprocessor 可用#ifdef or #ifndef 把一些code mask
: 请问有写好的这种script 把code 中不需要的部份删掉然後产生新的code的吗
: 需要的原因是我的code有很多这种define的选项..但老板说release code时
: 那些用在windows, simulation, testing 的define都最好拿掉,
: 请问有这种写好的preprocessor吗 或是要写的简单的script language来做
: 有没有前辈能给建议呢
compile option /E or -E
大部分厂牌的compiler可用
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.124.5.232
1F:推 sorryChen:请问是可以产生移除完的code吗 128.125.87.33 11/18 14:47
2F:推 lungswu:gnuc c中-E会一并将#include解决掉 116.59.246.249 11/18 17:21