Re: Preprocessor
※ 引述《sorryChen (陳揚和)》之銘言:
: C/C++語言中的Preprocessor 可用#ifdef or #ifndef 把一些code mask
: 請問有寫好的這種script 把code 中不需要的部份刪掉然後產生新的code的嗎
: 需要的原因是我的code有很多這種define的選項..但老闆說release code時
: 那些用在windows, simulation, testing 的define都最好拿掉,
: 請問有這種寫好的preprocessor嗎 或是要寫的簡單的script language來做
: 有沒有前輩能給建議呢
man unifdef
(系統沒裝的話,google 找一下吧)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.133.5.141
推
11/21 14:03, , 1F
11/21 14:03, 1F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 3 之 3 篇):