attribute的妙用

__attribute__是GNU C扩展下一大特性机制,用于设置函数属性(Function Attribute )、变量属性(Variable Attribute )和类型属性(Type Attribute )。 __attribute__前后以两个下划线 __ 标识,后端跟 () 说明跟随参数属