0
有人能解釋一下這段代碼中的#ifdef ..#else ..#endif嗎?它來自一個開源的iphone twitter客戶端。iphone有人請向我解釋一下#ifdef在這裏做什麼?
#ifdef ENABLE_OAUTH
@interface NTLNTwitterClient : NTLNOAuthHttpClient {
#else
@interface NTLNTwitterClient : NTLNHttpClient {
#endif
int requestPage;
NSString *screenNameForUserTimeline;
BOOL parseResultXML;
NSObject<NTLNTwitterClientDelegate> *delegate;
BOOL requestForTimeline;
BOOL requestForDirectMessage;
NTLNTwitterXMLParser *xmlParser;
}
很酷。感謝您的迴應! – unicornherder 2010-07-23 17:38:21