我知道以下3個部分#define
:只有2部分時,#define的含義是什麼?
#define PI 3.4
這意味着它將與3.4
取代PI
。
但是,這2份#define
這樣的意思:
#define something
將它替換something
與空/空字符串?
以下是代碼示例,我搜索的文件,只列出了相關的線
D:\mariadb\storage\pbxt\src\cache_xt.cc (23 hits)
Line 172: #ifdef xtPublic
Line 173: #undef xtPublic
Line 188: #define xtPublic
Line 325: xtPublic XTIndHandlePtr xt_ind_get_handle(..)
Line 378: xtPublic void xt_ind_release_handle(XTIndHandlePtr..)
Line 516: xtPublic xtBool xt_ind_copy_on_write(XTIndReferencePtr iref)
Line 597: xtPublic void xt_ind_lock_handle(XTIndHandlePtr handle)
這裏沒有真正的相關性,但將PI定義爲3.4是一個可怕的近似值。 :) – ereOn 2011-05-25 09:12:40
謝謝,只是一個例子,但一個不好的例子:) – 2011-05-26 00:45:29