看板 C_and_CPP 關於我們 聯絡資訊
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) Linux 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) GNURadio 問題(Question): 我在GNURadio 看到一份sample code 他內容如下 class __GR_ATTR_EXPORT qa_howto { public: //! return suite of tests for all of gr-filter directory static CppUnit::TestSuite *suite(); }; __GR_ATTR_EXPORT 我想知道這作用是?第一次看到名稱(qa_howto)前面有稱謂 能否請版上神人提示一下 謝謝囉 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 4.35.246.19 ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1433551958.A.498.html
carylorrk: define 在 attributes.h 06/06 08:59
carylorrk: 是 GNU style 的 __attribute__ 06/06 09:02
Killercat: 你看過無法理解的東西 98%是macro 2%是QT 06/06 13:23
Killercat: 阿,不過也有直接把gcc attribute寫進去的就是.... 06/06 13:24
naikojack: 感謝各位的回答 06/06 13:50
uranusjr: @Killercat: Qt 的那 2% 也是 macro 啊 06/07 06:58
Killercat: 被這樣說好像也是 XDDDDD 06/07 13:14
Bencrie: 也有可能是留給 Windows 用的 __declspec() 宣告 06/07 18:25