[問題] Class 命名前的名字是?

看板C_and_CPP作者 (築夢 逐夢 go~)時間9年前 (2015/06/06 08:52), 編輯推噓2(207)
留言9則, 6人參與, 最新討論串1/1
開發平台(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

06/06 08:59, , 1F
define 在 attributes.h
06/06 08:59, 1F

06/06 09:02, , 2F
是 GNU style 的 __attribute__
06/06 09:02, 2F

06/06 13:23, , 3F
你看過無法理解的東西 98%是macro 2%是QT
06/06 13:23, 3F

06/06 13:24, , 4F
阿,不過也有直接把gcc attribute寫進去的就是....
06/06 13:24, 4F

06/06 13:50, , 6F
感謝各位的回答
06/06 13:50, 6F

06/07 06:58, , 7F
@Killercat: Qt 的那 2% 也是 macro 啊
06/07 06:58, 7F

06/07 13:14, , 8F
被這樣說好像也是 XDDDDD
06/07 13:14, 8F

06/07 18:25, , 9F
也有可能是留給 Windows 用的 __declspec() 宣告
06/07 18:25, 9F
文章代碼(AID): #1LSaHMIO (C_and_CPP)