<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 134,comments - 22,trackbacks - 0

    看到內(nèi)核代碼中有很多地方都使用了#if defined(),可是卻找不到這個(gè)東東的定義,主要是define()。它和我們常用的#ifdef有什么不同嗎?

    4.2.3 Defined The special operator defined is used in #if and #elif expressions to test whether a certain name is defined as a macro. defined name and defined (name) are both expressions whose value is 1 if name is defined as a macro at the current point in the program, and 0 otherwise. Thus, #if defined MACRO is precisely equivalent to #ifdef MACRO.

    defined is useful when you wish to test more than one macro for existence at once. For example,

    #if defined (__vax__) || defined (__ns16000__)

    would succeed if either of the names __vax__ or __ns16000__ is defined as a macro.

    Conditionals written like this:

    #if defined BUFSIZE && BUFSIZE >= 1024

    can generally be simplified to just #if BUFSIZE >= 1024, since if BUFSIZE is not defined, it will be interpreted as having the value zero.

    If the defined operator appears as a result of a macro expansion, the C standard says the behavior is undefined. GNU cpp treats it as a genuine defined operator and evaluates it normally. It will warn wherever your code uses this feature if you use the command-line option -pedantic, since other compilers may handle it differently.
    posted on 2010-07-27 14:22 何克勤 閱讀(2808) 評(píng)論(1)  編輯  收藏 所屬分類: C/C++

    FeedBack:
    # re: #if defined()的含義(ZZ)[未登錄]
    2011-11-04 16:43 | jack
    it's usefull   回復(fù)  更多評(píng)論
      
    主站蜘蛛池模板: xxxxx做受大片视频免费| 亚洲啪啪免费视频| 亚洲黄色高清视频| 性色av免费观看| 亚洲精品视频免费观看| 91在线精品亚洲一区二区| 女人张腿给男人桶视频免费版| 一本久久A久久免费精品不卡| 亚洲视频在线观看地址| 又粗又大又长又爽免费视频 | 中文字幕亚洲综合久久综合| 男人的天堂亚洲一区二区三区 | 少妇亚洲免费精品| 亚洲欧洲视频在线观看| 亚洲成年看片在线观看| 四虎在线免费视频| 国产日韩在线视频免费播放| 456亚洲人成影院在线观| 亚洲愉拍99热成人精品热久久 | 亚洲免费人成在线视频观看| 亚洲精品色播一区二区| 亚洲av日韩av天堂影片精品| 国产精品另类激情久久久免费| 99xxoo视频在线永久免费观看| 黄页网址大全免费观看12网站| 亚洲一区二区三区不卡在线播放| 国产精品xxxx国产喷水亚洲国产精品无码久久一区 | 免费人成在线观看播放国产| **俄罗斯毛片免费| 国产一二三四区乱码免费| 亚洲综合色丁香婷婷六月图片| 亚洲视频在线观看免费| 亚洲无码视频在线| 男女啪啪永久免费观看网站| 亚洲视频免费一区| 日本免费一区二区久久人人澡| 羞羞视频免费网站入口| 亚洲一区二区三区丝袜| 亚洲特级aaaaaa毛片| 亚洲人成网站在线播放影院在线 | 亚洲人成综合在线播放|