Re: Preprocessor

看板Programming作者 (每次下中華隊都輸...orz)時間17年前 (2008/11/18 13:26), 編輯推噓2(200)
留言2則, 2人參與, 最新討論串2/3 (看更多)
※ 引述《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

11/18 14:47, , 1F
請問是可以產生移除完的code嗎
11/18 14:47, 1F

11/18 17:21, , 2F
gnuc c中-E會一併將#include解決掉
11/18 17:21, 2F
文章代碼(AID): #198b7jaV (Programming)
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 3 篇):
文章代碼(AID): #198b7jaV (Programming)