linux used

# define __used        __attribute__((__unused__))

attribute((used)) 其作用是告诉编译器避免被链接器因为未用过而被优化掉。

发布了137 篇原创文章 · 获赞 106 · 访问量 6万+

猜你喜欢

转载自blog.csdn.net/shenlong1356/article/details/103119945