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

作者: naikojack (築夢 逐夢 go~)   2015-06-06 08:52:35
開發平台(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)前面有稱謂
能否請版上神人提示一下 謝謝囉
作者: carylorrk (carylorrk)   2015-06-06 08:59:00
define 在 attributes.h是 GNU style 的 __attribute__
作者: Killercat (殺人貓™)   2015-06-06 13:23:00
你看過無法理解的東西 98%是macro 2%是QT阿,不過也有直接把gcc attribute寫進去的就是....
作者: naikojack (築夢 逐夢 go~)   2015-06-06 13:50:00
感謝各位的回答
作者: uranusjr (←這人是超級笨蛋)   2015-06-07 06:58:00
@Killercat: Qt 的那 2% 也是 macro 啊
作者: Killercat (殺人貓™)   2015-06-07 13:14:00
被這樣說好像也是 XDDDDD
作者: Bencrie   2015-06-07 18:25:00
也有可能是留給 Windows 用的 __declspec() 宣告

Links booklink

Contact Us: admin [ a t ] ucptt.com